3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = $foo--; var_dump($x); var_dump($foo);
Output for 8.3.0 - 8.3.37, 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
Warning: Undefined variable $foo in /in/Bnb2D on line 3 Warning: Decrement on type null has no effect, this will change in the next major version of PHP in /in/Bnb2D on line 3 NULL NULL
Output for 8.1.3 - 8.1.34, 8.2.0 - 8.2.36
Warning: Undefined variable $foo in /in/Bnb2D on line 3 NULL NULL

preferences:
27.7 ms | 1167 KiB | 6 Q