3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('error_reporting', E_ALL & ~E_DEPRECATED); echo "error_reporting is currently set to: " . ini_get('error_reporting'), "\n"; echo "a notice should be reported here: "; echo $x; echo "\n"; ini_set('error_reporting', 'E_ALL & ~E_DEPRECATED'); echo "error_reporting is currently set to: " . ini_get('error_reporting'), "\n"; echo "a notice should be reported here: "; echo $y;

preferences:
27.77 ms | 405 KiB | 5 Q