3v4l.org

run code in 300+ PHP versions simultaneously
<?php # different results for PHP 5.x and 7.x: ini_set('error_reporting', 1); $a = array(); $a['ini_get'] = ini_get('error_reporting'); $a['error_reporting'] = error_reporting(); $a['@ini_get'] = @ini_get('error_reporting'); $a['@error_reporting'] = @error_reporting(); var_export($a);
based on 1G971