3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "0d9"; var_dump($foo); var_dump($foo + 0); var_dump($foo + 1); ++$foo; var_dump($foo);
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
string(3) "0d9" Warning: A non-numeric value encountered in /in/7Z6Sn on line 4 int(0) Warning: A non-numeric value encountered in /in/7Z6Sn on line 5 int(1) string(3) "0e0"
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
string(3) "0d9" Notice: A non well formed numeric value encountered in /in/7Z6Sn on line 4 int(0) Notice: A non well formed numeric value encountered in /in/7Z6Sn on line 5 int(1) string(3) "0e0"
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.3.32 - 7.3.33
string(3) "0d9" int(0) int(1) string(3) "0e0"

preferences:
182.79 ms | 402 KiB | 184 Q