3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a ="zz"; $b = "zz"; $a++; $b--; var_dump($a); var_dump($b); $c = "zz"; $c += 1; var_dump($c); $d = "zz"; $d -= 1; var_dump($d);
Output for 7.1.0
string(3) "aaa" string(2) "zz" Warning: A non-numeric value encountered in /in/gT8a8 on line 13 int(1) Warning: A non-numeric value encountered in /in/gT8a8 on line 17 int(-1)
Output for 4.3.0 - 7.0.14
string(3) "aaa" string(2) "zz" int(1) int(-1)