3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); register_shutdown_function(function() use ($start){ sleep(2); printf("we are still running, for about %s seconds.", time()-$start); }); set_time_limit(1); sleep(2); echo "this will trigger the timeout";

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.0000.01116.88
7.2.00.0070.00419.56
7.1.200.0190.00315.54
7.1.100.0030.00617.88
7.1.70.0040.00417.07
7.1.60.0040.02019.32
7.1.50.0110.00717.09
7.1.00.0030.07722.31
7.0.200.0050.00216.85
7.0.140.0030.07022.18
7.0.90.0030.07321.69
7.0.80.0030.07721.76
7.0.70.0030.07021.82
7.0.60.0100.06721.72
7.0.50.0070.04722.16
7.0.40.0070.07720.07
7.0.30.0100.07320.13
7.0.20.0000.09320.04
7.0.10.0100.07719.99
7.0.00.0030.08720.04
5.6.280.0030.07321.13
5.6.240.0130.07020.61
5.6.230.0100.08320.59
5.6.220.0070.07020.68
5.6.210.0070.08020.76
5.6.200.0100.07721.03
5.6.190.0070.04021.01
5.6.180.0030.05021.08
5.6.170.0070.07321.14
5.6.160.0030.08321.05
5.6.150.0070.08021.14
5.6.140.0030.07021.11
5.6.130.0100.07720.96
5.6.120.0100.06021.02
5.6.110.0030.04020.98
5.6.100.0030.08720.95
5.6.90.0030.08021.00
5.6.80.0070.06020.39
5.6.70.0030.07320.34
5.6.60.0070.06720.41
5.6.50.0130.06720.40
5.6.40.0070.04320.41
5.6.30.0000.04020.37
5.6.20.0000.08720.38
5.6.10.0030.07020.43
5.6.00.0030.07720.39
5.5.380.0070.06320.38
5.5.370.0030.07320.36
5.5.360.0100.07020.46
5.5.350.0030.07320.42
5.5.340.0100.06720.80
5.5.330.0030.08720.84
5.5.320.0070.07720.84
5.5.310.0070.07020.78
5.5.300.0030.08720.92
5.5.290.0170.07020.87
5.5.280.0070.08020.82
5.5.270.0070.06020.71
5.5.260.0000.07720.73
5.5.250.0030.07320.66
5.5.240.0030.06720.27
5.5.230.0070.08020.18
5.5.220.0070.07020.25
5.5.210.0070.06020.21
5.5.200.0070.07320.26
5.5.190.0130.06720.11
5.5.180.0100.07720.18
5.5.160.0070.07020.27
5.5.150.0130.07320.21
5.5.140.0070.06320.14
5.5.130.0130.07320.18
5.5.120.0070.07320.24
5.5.110.0070.07720.20
5.5.100.0070.07320.07
5.5.90.0130.06720.16
5.5.80.0000.04720.11
5.5.70.0030.07020.14
5.5.60.0030.08020.11
5.5.50.0030.08019.93
5.5.40.0070.07720.03
5.5.30.0070.05720.00
5.5.20.0030.08020.09
5.5.10.0130.06720.13
5.5.00.0000.07320.05
5.4.450.0130.07719.29
5.4.440.0000.08019.36
5.4.430.0030.03319.28
5.4.420.0100.07319.11
5.4.410.0100.06319.15
5.4.400.0070.06718.99
5.4.390.0100.06718.89
5.4.380.0000.08018.93
5.4.370.0070.07018.97
5.4.360.0130.06318.93
5.4.350.0030.03718.97
5.4.340.0070.07018.84
5.4.320.0070.07719.03
5.4.310.0070.06318.95
5.4.300.0030.07718.98
5.4.290.0030.08718.99
5.4.280.0070.07319.02
5.4.270.0030.07319.04
5.4.260.0030.06718.98
5.4.250.0100.03018.95
5.4.240.0030.03019.14
5.4.230.0070.07318.81
5.4.220.0030.07318.98
5.4.210.0030.07319.03
5.4.200.0030.07718.96
5.4.190.0000.07718.81
5.4.180.0030.07719.13
5.4.170.0100.06718.83
5.4.160.0030.07318.95
5.4.150.0100.07718.95
5.4.140.0030.07316.35
5.4.130.0070.07716.40
5.4.120.0070.06716.17
5.4.110.0030.03716.44
5.4.100.0000.07016.42
5.4.90.0030.04016.23
5.4.80.0030.07016.29
5.4.70.0030.07016.46
5.4.60.0070.07016.46
5.4.50.0030.07316.39
5.4.40.0070.06716.26
5.4.30.0000.05716.26
5.4.20.0070.07716.27
5.4.10.0070.06316.39
5.4.00.0030.07015.83

preferences:
34.94 ms | 401 KiB | 5 Q