3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 2; echo "3+3=" . $a++ + $a++; // Should echo "3+3=6", right? RIGHT?
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/cHVZi on line 2 6
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
6
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/cHVZi on line 2
Process exited with code 255.