3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $z = 'z'; var_dump($z++); var_dump($z + 1); $z++; var_dump($z); $z--; var_dump($z); $z = $z + 1; var_dump($z);
based on crZuW
Output for 7.1.0
string(1) "z" Warning: A non-numeric value encountered in /in/ibOPE on line 4 int(1) string(2) "ab" string(2) "ab" Warning: A non-numeric value encountered in /in/ibOPE on line 9 int(1)
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
string(1) "z" int(1) string(2) "ab" string(2) "ab" int(1)