3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function __construct() { echo "Inside constructor\n"; throw new Exception; } function __destruct() { echo "Inside destructor\n"; } } try { $bar = new foo; }

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.240.0110.04012.39
5.4.230.0120.04312.39
5.4.220.0110.04212.39
5.4.210.0120.04112.39
5.4.200.0150.03812.39
5.4.190.0170.04912.38
5.4.180.0090.04312.38
5.4.170.0090.04212.39
5.4.160.0120.04012.38
5.4.150.0090.04312.38
5.4.140.0090.04312.07
5.4.130.0200.04612.06
5.4.120.0120.03712.02
5.4.110.0130.03812.01
5.4.100.0160.04912.01
5.4.90.0090.04212.01
5.4.80.0120.04112.01
5.4.70.0100.04112.01
5.4.60.0150.04612.01
5.4.50.0150.04712.01
5.4.40.0210.05812.00
5.4.30.0130.04711.99
5.4.20.0140.04311.99
5.4.10.0100.05011.99
5.4.00.0120.04111.48
5.3.280.0130.04912.71
5.3.270.0100.04512.72
5.3.260.0130.04312.72
5.3.250.0200.06512.72
5.3.240.0120.04412.71
5.3.230.0140.04112.71
5.3.220.0240.06212.68
5.3.210.0210.06712.68
5.3.200.0180.05412.68
5.3.190.0130.04912.68
5.3.180.0140.04512.67
5.3.170.0210.06312.67
5.3.160.0200.06612.67
5.3.150.0230.06412.67
5.3.140.0270.06312.66
5.3.130.0120.04412.66
5.3.120.0140.05012.66
5.3.110.0150.05412.66
5.3.100.0230.07512.12
5.3.90.0130.05112.09
5.3.80.0190.07512.09
5.3.70.0170.04312.09
5.3.60.0250.05812.07
5.3.50.0150.04712.01
5.3.40.0190.06512.01
5.3.30.0200.06311.97
5.3.20.0100.04111.75
5.3.10.0220.05911.72
5.3.00.0220.05711.70

preferences:
140.27 ms | 1398 KiB | 7 Q