3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($argument) { try { echo "try\n"; return $argument; } finally { $argument++; unset($argument); echo "finally\n"; } } $counter = 2; $result = test($counter); var_dump($result);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.66 ms | 2046 KiB | 11 Q