3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function test() { try { return 5; } finally { try { // NOOP } catch(Exception $e) { // NOOP var_export($e); } finally { // NOOP } } } $a = test(); if($a !== 5) { echo "FAILED: expected 5, recieved ", var_export($a), PHP_EOL; } else { echo "Passed", PHP_EOL; }
Output for 5.5.16 - 5.6.28, 7.1.0 - 7.3.0rc4
Passed
Output for 7.0.0 - 7.0.20
FAILED: expected 5, recieved NULL
Output for 5.5.0 - 5.5.15

Process exited with code 137.