3v4l.org

run code in 300+ PHP versions simultaneously
<?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; }

preferences:
38.02 ms | 402 KiB | 5 Q