3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); register_shutdown_function(function() use ($start){ printf("running for about %s seconds", time()-$start); sleep(2); printf("this will trigger the timeout again"); }); 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.0070.00716.92
7.1.200.0120.00015.74
7.1.70.0080.00417.06
7.1.60.0030.01719.32
7.1.50.0090.01116.79
7.1.00.0030.07722.25
7.0.200.0080.00016.91
7.0.140.0000.07722.00
7.0.100.0170.06720.19
7.0.90.0130.05320.05
7.0.80.0070.08019.95
7.0.70.0470.07319.84
7.0.60.0170.05719.88
7.0.50.0230.06720.35
7.0.40.0130.06720.14
7.0.30.0100.07720.13
7.0.20.0070.04320.01
7.0.10.0070.04020.08
7.0.00.0100.05020.04
5.6.250.0130.08020.61
5.6.240.0070.08320.67
5.6.230.0130.06020.66
5.6.220.0100.07720.62
5.6.210.0030.08720.76
5.6.200.0130.06320.95
5.6.190.0030.08020.98
5.6.180.0030.05021.05
5.6.170.0200.06321.10
5.6.160.0100.08021.18
5.6.150.0070.08021.04
5.6.140.0130.08020.96
5.6.130.0100.07021.02
5.6.120.0170.08021.02
5.6.110.0130.07321.13
5.6.100.0030.07021.04
5.6.90.0100.08320.98
5.6.80.0000.06720.43
5.6.70.0070.07320.42
5.6.60.0170.06720.40
5.6.50.0070.07720.45
5.6.40.0070.08020.43
5.6.30.0100.08020.48
5.6.20.0100.07720.44
5.6.10.0030.07320.43
5.6.00.0070.07020.45
5.5.380.0100.07020.45
5.5.370.0070.05020.46
5.5.360.0030.04020.51
5.5.350.0100.08320.45
5.5.340.0070.05020.78
5.5.330.0070.08320.78
5.5.320.0100.05720.72
5.5.310.0030.04020.80
5.5.300.0070.08320.77
5.5.290.0170.07020.80
5.5.280.0100.08020.86
5.5.270.0130.07720.75
5.5.260.0100.08020.77
5.5.250.0070.09320.73
5.5.240.0030.03720.03
5.5.230.0070.08020.21
5.5.220.0070.08020.31
5.5.210.0030.04720.23
5.5.200.0100.06720.28
5.5.190.0130.08020.28
5.5.180.0030.06320.20
5.5.160.0030.04020.18
5.5.150.0030.07720.15
5.5.140.0070.07020.20
5.5.130.0030.08320.13
5.5.120.0030.06720.21
5.5.110.0070.07720.10
5.5.100.0270.04719.95
5.5.90.0100.06720.07
5.5.80.0000.05720.12
5.5.70.0100.07320.14
5.5.60.0070.06720.10
5.5.50.0070.07320.16
5.5.40.0000.04020.04
5.5.30.0000.06720.14
5.5.20.0170.06720.09
5.5.10.0130.06720.00
5.5.00.0170.06720.07
5.4.450.0130.06319.29
5.4.440.0100.07719.38
5.4.430.0100.06719.11
5.4.420.0100.05719.29
5.4.410.0100.07319.12
5.4.400.0030.07718.88
5.4.390.0130.07018.98
5.4.380.0130.06718.95
5.4.370.0070.07018.89
5.4.360.0030.07719.11
5.4.350.0030.08018.93
5.4.340.0100.06318.81
5.4.320.0000.05718.99
5.4.310.0070.05019.00
5.4.300.0070.07018.88
5.4.290.0030.08019.11
5.4.280.0000.07718.82
5.4.270.0030.07318.97
5.4.260.0070.07018.96
5.4.250.0030.06319.14
5.4.240.0100.06018.95
5.4.230.0070.06719.10
5.4.220.0070.07318.88
5.4.210.0000.07018.98
5.4.200.0000.05718.78
5.4.190.0030.03318.80
5.4.180.0070.06318.81
5.4.170.0070.05719.04
5.4.160.0070.07318.81
5.4.150.0030.07318.90
5.4.140.0030.07316.28
5.4.130.0100.06716.17
5.4.120.0070.05716.40
5.4.110.0000.04716.48
5.4.100.0030.07016.31
5.4.90.0100.06716.39
5.4.80.0000.07716.29
5.4.70.0070.07316.47
5.4.60.0070.06716.26
5.4.50.0030.06716.30
5.4.40.0070.06316.28
5.4.30.0030.07316.42
5.4.20.0000.04716.30
5.4.10.0030.04016.32
5.4.00.0000.03715.86

preferences:
36.64 ms | 401 KiB | 5 Q