3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL); class asd { function __construct() { } function run() { asd1(); } } function asd1() { asd2(); } function asd2() { asd3(); } function asd3() { echo '2'; echo 'error_reporting: ' . ini_get('error_reporting') . PHP_EOL; @error_log('asdasd'); echo '3'; } $asd = new asd(); echo '1'; echo 'error_reporting: ' . ini_get('error_reporting') . PHP_EOL; @$asd->run(); echo '4';
based on Q8EIj
Output for 7.0.0 - 7.3.0rc4
1error_reporting: 32767 2error_reporting: 32767 34asdasd
Output for 5.4.10 - 5.6.28
1error_reporting: 32767 2error_reporting: 0 34asdasd
Output for 5.3.20 - 5.3.29
1error_reporting: 30719 2error_reporting: 0 34asdasd