3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // in the first expression $a + $a++; // "++" has higher precedence than "+", so "$a++" is grouped: $a + ($a++); // in the second expressions $a + $a + $a++; // "++" again has higher precedence than "+": $a + $a + ($a++); // and "+" is a left-associative operator, so the left "+" is grouped: ($a + $a) + ($a++);
Output for 5.1.0 - 7.1.0
Notice: Undefined variable: a in /in/VbAqY on line 4
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: a in /in/VbAqY on line 4 Notice: Undefined variable: a in /in/VbAqY on line 4
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/VbAqY on line 4 Notice: Undefined variable: a in /in/VbAqY on line 4