3v4l.org

run code in 200+ 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 - 7.2.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 - 7.0.20
string(1) "z" int(1) string(2) "ab" string(2) "ab" int(1)