3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(20); while ($i<=10) { echo "i=$i "; sleep(100); $i++; }

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.3.60.0120.00325.92
8.3.50.0170.00325.92
8.3.40.0070.01425.92
8.2.180.0070.00725.92
8.2.170.0120.00325.92
8.1.280.0090.00625.92
7.4.50.0040.01316.32
7.4.40.0110.00716.21
7.4.30.0080.01016.32
7.4.20.0160.01216.43
7.4.10.0260.00516.32
7.4.00.0080.00814.90
7.3.170.0040.01116.21
7.3.160.0070.00916.28
7.3.150.0120.01016.37
7.3.140.0220.00616.16
7.3.130.0200.00816.51
7.2.290.0130.01016.34
7.2.280.0190.00316.45
7.2.270.0290.00816.54
7.2.00.0050.00519.48
7.1.100.0000.01018.08
7.1.70.0100.00316.65
7.1.60.0170.00319.32
7.1.50.0070.01416.78
7.1.00.0000.08022.34
7.0.200.0030.00516.70
7.0.140.0030.07321.97
7.0.60.0100.08320.03
7.0.50.0100.07717.79
7.0.40.0070.07319.75
7.0.30.0530.05719.85
7.0.20.0130.09019.94
7.0.10.0170.08019.71
7.0.00.0100.03319.81
5.6.280.0070.07020.91
5.6.210.0030.05720.74
5.6.200.0070.04018.09
5.6.190.0000.05020.32
5.6.180.0230.07720.36
5.6.170.0270.07720.26
5.6.160.0030.06320.39
5.6.150.0070.04318.14
5.6.140.0100.04718.12
5.6.130.0000.08718.13
5.6.120.0130.06021.05
5.6.110.0130.08021.14
5.6.100.0100.03720.98
5.6.90.0070.08721.01
5.6.80.0100.03720.38
5.5.350.0100.05720.43
5.5.340.0030.04017.92
5.5.330.0070.08320.12
5.5.320.0230.08020.16
5.5.310.0070.05020.06
5.5.300.0100.08317.86
5.5.290.0130.06017.83
5.5.280.0030.04320.98
5.5.270.0070.08020.84
5.5.260.0170.04720.89
5.5.250.0030.04320.60
5.5.240.0270.07320.25
5.4.450.0570.05719.29
5.4.440.0630.05719.38
5.4.430.0870.05719.06
5.4.420.0670.06019.56
5.4.410.0730.05019.21
5.4.400.0730.06019.07
5.4.390.0530.06718.70
5.4.380.0570.05719.07
5.4.370.0670.04719.07
5.4.360.0600.06319.18
5.4.350.0730.05319.17
5.4.340.0770.05718.69
5.4.320.0530.05718.88
5.4.310.0500.06019.23
5.4.300.0730.06019.17
5.4.290.0530.06019.02
5.4.280.0530.05718.85
5.4.270.0600.05719.18
5.4.260.0570.05319.00
5.4.250.0830.06018.87
5.4.240.0730.05319.03
5.4.230.0800.06019.01
5.4.220.0300.05319.04
5.4.210.0630.06018.75
5.4.200.0800.05316.71
5.4.190.0970.05319.18
5.4.180.0700.06718.79
5.4.170.0830.06718.82
5.4.160.0830.07018.75
5.4.150.1000.05318.78
5.4.140.0700.05316.34
5.4.130.0930.06716.19
5.4.120.0830.05716.29
5.4.110.0730.04716.19
5.4.100.0630.05016.47
5.4.90.0500.05716.14
5.4.80.0830.04016.34
5.4.70.0570.05316.17
5.4.60.0900.06016.16
5.4.50.0630.04716.54
5.4.40.0970.06016.28
5.4.30.0530.05716.14
5.4.20.0630.04716.44
5.4.10.0500.05316.29
5.4.00.0870.04715.73

preferences:
35 ms | 401 KiB | 5 Q