3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a++; $b+=1; var_dump($a); var_dump($b);
Output for 5.0.4 - 7.1.7
Notice: Undefined variable: a in /in/1rLLt on line 3 Notice: Undefined variable: b in /in/1rLLt on line 4 int(1) int(1)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: a in /in/1rLLt on line 3 Notice: Undefined variable: b in /in/1rLLt on line 4 int(1) int(1)