3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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 0JBBR
Output for 8.0.0 - 8.0.3
array ( 'ini_get' => '1', 'error_reporting' => 1, '@ini_get' => '1', '@error_reporting' => 1, )
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.27, 7.4.0 - 7.4.15
array ( 'ini_get' => '1', 'error_reporting' => 1, '@ini_get' => '1', '@error_reporting' => 0, )