3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar() { try { echo "1\n"; } finally { try { throw new Exception(""); } catch (Exception $ab) { echo "2\n"; } finally { echo "3\n"; } echo "4\n"; } echo "5\n"; } bar();<?php var_export(filter_var(false, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE ));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.290.0130.05312.50
5.4.280.0160.05712.39
5.4.270.0130.06112.39
5.4.260.0090.05412.39
5.4.250.0160.08012.39
5.4.240.0060.06112.39
5.4.230.0080.04612.38
5.4.220.0060.04412.38
5.4.210.0070.03812.38
5.4.200.0060.04212.38
5.4.190.0130.04112.38
5.4.180.0120.07112.38
5.4.170.0190.07612.38
5.4.160.0140.05312.38
5.4.150.0110.05612.38
5.4.140.0120.04712.07
5.4.130.0170.07812.05
5.4.120.0130.05012.02
5.4.110.0120.06012.01
5.4.100.0180.08612.01
5.4.90.0120.04412.01
5.4.80.0170.07412.01
5.4.70.0060.05512.01
5.4.60.0180.07312.01
5.4.50.0070.04012.01
5.4.40.0090.04512.00
5.4.30.0070.04912.00
5.4.20.0150.07211.99
5.4.10.0090.04711.99
5.4.00.0090.05511.48
5.3.280.0080.05912.71
5.3.270.0360.06812.72
5.3.260.0210.05512.72
5.3.250.0150.08312.72
5.3.240.0080.05712.72
5.3.230.0070.04812.71
5.3.220.0090.06012.68
5.3.210.0080.05312.68
5.3.200.0070.05512.68
5.3.190.0100.05312.68
5.3.180.0070.04212.67
5.3.170.0130.04812.67
5.3.160.0070.05412.67
5.3.150.0100.05112.67
5.3.140.0080.04812.66
5.3.130.0130.04912.66
5.3.120.0080.05112.66
5.3.110.0080.05112.66
5.3.100.0060.04912.13
5.3.90.0130.04812.11
5.3.80.0120.04812.09
5.3.70.0080.04512.09
5.3.60.0190.07612.08
5.3.50.0200.09112.02
5.3.40.0100.06712.02
5.3.30.0140.06811.98
5.3.20.0110.06311.76
5.3.10.0130.06211.74
5.3.00.0100.04611.71

preferences:
136.35 ms | 1398 KiB | 7 Q