3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_shutdown_function(function(){ sleep(2); echo time()-$_REQUEST["REQUEST_TIME"]; }); set_time_limit(1); sleep(2); echo 123;

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)
7.2.60.0360.00316.72
7.2.00.0070.00219.46
7.1.200.0080.00815.70
7.1.100.0130.00018.03
7.1.70.0030.00616.65
7.1.60.0140.01019.32
7.1.50.0230.01634.53
7.1.00.0030.07722.22
7.0.200.0000.00716.88
7.0.140.0030.07322.06
7.0.80.0570.07719.86
7.0.70.0530.08319.91
7.0.60.0570.06319.93
7.0.50.0770.08720.36
7.0.40.0100.08720.10
7.0.30.0130.04020.07
7.0.20.0170.07320.18
7.0.10.0130.07019.95
7.0.00.0030.08720.14
5.6.280.0000.07721.08
5.6.230.0000.05020.63
5.6.220.0100.08320.62
5.6.210.0100.07720.52
5.6.200.0070.08321.04
5.6.190.0230.07321.09
5.6.180.0170.06021.04
5.6.170.0030.07721.05
5.6.160.0100.07721.05
5.6.150.0130.07021.14
5.6.140.0100.07721.03
5.6.130.0130.07320.96
5.6.120.0070.08720.89
5.6.110.0100.08021.07
5.6.100.0070.08321.07
5.6.90.0070.07320.93
5.6.80.0170.07020.40
5.6.70.0100.08020.44
5.6.60.0100.05020.54
5.6.50.0100.08020.48
5.6.40.0070.08320.39
5.6.30.0130.08020.47
5.6.20.0000.05720.38
5.6.10.0200.08020.29
5.6.00.0200.07720.32
5.5.370.0130.04020.35
5.5.360.0130.08320.36
5.5.350.0070.07020.39
5.5.340.0100.07720.92
5.5.330.0000.08720.77
5.5.320.0030.08020.92
5.5.310.0030.08720.90
5.5.300.0100.08020.92
5.5.290.0170.07020.76
5.5.280.0100.08320.87
5.5.270.0170.07320.84
5.5.260.0030.04320.82
5.5.250.0130.08020.55
5.5.240.0070.07720.32
5.5.230.0030.08719.98
5.5.220.0070.07320.25
5.5.210.0100.07320.28
5.5.200.0070.09020.09
5.5.190.0030.04320.25
5.5.180.0070.04020.15
5.5.160.0130.06720.14
5.5.150.0070.08020.11
5.5.140.0130.07020.27
5.5.130.0130.07320.14
5.5.120.0130.07720.08
5.5.110.0130.07720.18
5.5.100.0130.07320.10
5.5.90.0100.08320.07
5.5.80.0170.06720.07
5.5.70.0030.04020.16
5.5.60.0070.03020.06
5.5.50.0170.06720.06
5.5.40.0070.07720.16
5.5.30.0130.07020.05
5.5.20.0070.08320.13
5.5.10.0130.07320.11
5.5.00.0170.07020.07
5.4.450.0070.08019.19
5.4.440.0030.08319.36
5.4.430.0270.06319.31
5.4.420.0070.06019.13
5.4.410.0000.04319.20
5.4.400.0070.07319.04
5.4.390.0100.07718.82
5.4.380.0030.08318.97
5.4.370.0070.08018.95
5.4.360.0100.07719.14
5.4.350.0100.07018.96
5.4.340.0100.03718.83
5.4.320.0100.07318.95
5.4.310.0100.07718.80
5.4.300.0070.07719.02
5.4.290.0030.07719.03
5.4.280.0000.08719.11
5.4.270.0070.07719.04
5.4.260.0100.08018.95
5.4.250.0030.06718.77
5.4.240.0100.07718.98
5.4.230.0070.03718.95
5.4.220.0100.03318.96
5.4.210.0200.07018.91
5.4.200.0100.07318.77
5.4.190.0200.06319.14
5.4.180.0170.07018.96
5.4.170.0100.07718.81
5.4.160.0070.07319.09
5.4.150.0100.07719.09
5.4.140.0030.07716.33
5.4.130.0130.06316.38
5.4.120.0070.07016.39
5.4.110.0100.08016.43
5.4.100.0130.06316.35
5.4.90.0070.07716.30
5.4.80.0130.06016.46
5.4.70.0130.06716.29
5.4.60.0030.03716.46
5.4.50.0030.04016.38
5.4.40.0100.07016.42
5.4.30.0170.06316.33
5.4.20.0100.07716.39
5.4.10.0030.07716.45
5.4.00.0100.07015.77

preferences:
35.37 ms | 401 KiB | 5 Q