3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(): never { throw new Exception('This function never returns'); } try { foo(); } catch (Exception $e) { echo $e->getMessage(); }

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)
8.5.00.0110.01019.93
8.4.150.0020.00114.05
8.4.140.0130.00817.70
8.4.130.0070.00518.05
8.4.120.0100.00924.05
8.4.110.0030.00621.39
8.4.100.0120.01017.99
8.4.90.0120.01520.40
8.4.80.0040.00418.85
8.4.70.0150.00520.34
8.4.60.0140.00620.43
8.4.50.0090.01020.52
8.4.40.0070.01317.50
8.4.30.0150.00420.52
8.4.20.0140.00719.67
8.4.10.0090.00019.45
8.3.280.0100.01018.50
8.3.270.0090.01116.95
8.3.260.0100.01016.83
8.3.250.0090.01018.68
8.3.240.0150.00416.94
8.3.230.0120.00716.57
8.3.220.0040.00418.89
8.3.210.0100.00316.78
8.3.200.0130.00916.54
8.3.190.0110.00419.01
8.3.180.0110.00818.93
8.3.170.0110.00717.18
8.3.160.0040.00418.46
8.3.150.0070.01418.24
8.3.140.0080.01116.59
8.3.130.0100.00018.47
8.3.120.0090.00919.04
8.3.110.0190.00016.60
8.3.100.0350.01337.54
8.3.90.0390.00637.54
8.3.80.0420.00937.54
8.3.70.0440.01037.54
8.3.60.0300.01037.54
8.3.50.0190.00537.54
8.3.40.0290.00837.54
8.3.30.0310.00837.54
8.3.20.0270.00837.54
8.3.10.0240.00537.54
8.3.00.0220.00437.54
8.2.290.0050.00416.64
8.2.280.0010.00718.30
8.2.270.0040.01518.36
8.2.260.0110.00417.31
8.2.250.0160.00316.55
8.2.240.0090.00616.71
8.2.230.0080.00820.94
8.2.220.0130.00337.54
8.2.210.0240.00537.54
8.2.200.0280.00437.54
8.2.190.0280.00637.54
8.2.180.0250.01237.54
8.2.170.0380.00537.54
8.2.160.0310.00437.54
8.2.150.0270.00837.54
8.2.140.0260.00437.54
8.2.130.0220.00837.54
8.2.120.0270.01237.54
8.2.110.0340.00837.54
8.2.100.0330.00837.54
8.2.90.0350.00537.54
8.2.80.0290.00837.54
8.2.70.0330.00937.54
8.2.60.0370.01037.54
8.2.50.0320.01237.54
8.2.40.0300.01137.54
8.2.30.0370.00337.54
8.2.20.0310.00637.54
8.2.10.0270.00837.54
8.2.00.0270.00637.54
8.1.330.0120.00621.64
8.1.320.0080.01116.01
8.1.310.0070.01116.56
8.1.300.0040.00416.66
8.1.290.0230.01137.54
8.1.280.0320.00737.54
8.1.270.0290.01037.54
8.1.260.0340.00937.54
8.1.250.0360.00337.54
8.1.240.0240.00537.54
8.1.230.0240.00737.54
8.1.220.0260.00737.54
8.1.210.0280.00837.54
8.1.200.0320.00637.54
8.1.190.0300.01037.54
8.1.180.0320.01137.54
8.1.170.0320.00837.54
8.1.160.0350.00437.54
8.1.150.0310.00537.54
8.1.140.0280.00737.54
8.1.130.0250.00737.54
8.1.120.0190.01137.54
8.1.110.0220.00437.54
8.1.100.0210.01137.54
8.1.90.0260.00137.54
8.1.80.0190.01437.54
8.1.70.0180.00837.54
8.1.60.0310.00537.54
8.1.50.0310.00637.54
8.1.40.0280.00437.54
8.1.30.0280.00937.54
8.1.20.0300.00837.54
8.1.10.0300.01037.54
8.1.00.0290.01337.54

preferences:
28.36 ms | 403 KiB | 5 Q