3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class asd { function run() { echo $unexisting; echo 'error_reporting on silent errors function: ' . ini_get('error_reporting') . PHP_EOL; asd_function(); } } function asd_function() { echo 'error_reporting on trigger error_log function: ' . ini_get('error_reporting') . PHP_EOL; @error_log('I am an error'); } $asd = new asd(); echo 'error_reporting before @: ' . ini_get('error_reporting') . PHP_EOL; @$asd->run();
based on QBDOZ
Output for 7.0.0 - 7.3.0rc4
error_reporting before @: 32767 error_reporting on silent errors function: 32767 error_reporting on trigger error_log function: 32767 I am an error
Output for 5.4.10 - 5.6.28
error_reporting before @: 32767 error_reporting on silent errors function: 0 error_reporting on trigger error_log function: 0 I am an error
Output for 5.3.20 - 5.3.29
error_reporting before @: 30719 error_reporting on silent errors function: 0 error_reporting on trigger error_log function: 0 I am an error