3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($c) { try { if ($c) { return 0; } else { return 1; } } finally { try { // NOOP } finally { // NOOP } } } var_dump(test(true), test(false));

Abusive script

This script was stopped while abusing our resources

Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1, 8.1.25 - 8.1.29, 8.2.12 - 8.2.23, 8.3.0 - 8.3.11
int(0) int(1)
Output for 7.0.0 - 7.0.33
NULL NULL
Output for 5.5.16 - 5.5.38, 5.6.0 - 5.6.40
int(1) int(1)
Output for 5.5.0 - 5.5.15

Process exited with code 137.

preferences:
72.94 ms | 409 KiB | 5 Q