<?php $i = 1;$j = 1 + $i++; print("x++ : i=$i, j=$j\n"); $i = 1;$j = 1 + ++$i; print("++x : i=$i, j=$j\n"); ?>
Standard input is empty
x++ : i=2, j=2 ++x : i=2, j=3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!