3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "0d9"; $bar = "0d9"; var_dump($foo === $bar); var_dump($foo + 1); var_dump($foo === $bar); $foo += 1; $bar++; var_dump([$foo, $bar]);
based on ZUDUq
Output for 7.1.0 - 7.2.0
bool(true) Notice: A non well formed numeric value encountered in /in/SaDnk on line 4 int(1) bool(true) Notice: A non well formed numeric value encountered in /in/SaDnk on line 6 array(2) { [0]=> int(1) [1]=> string(3) "0e0" }
Output for 5.4.11 - 7.0.20
bool(true) int(1) bool(true) array(2) { [0]=> int(1) [1]=> string(3) "0e0" }
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/SaDnk on line 7
Process exited with code 255.