3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <body> <?php $t=5; do { echo "The number is: $x <br>"; $t++; } while ($t<=10); ?> </body> </html>

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.40.0120.00318.57
8.3.30.0070.00718.95
8.3.20.0040.00420.29
8.3.10.0000.00723.66
8.3.00.0080.00022.24
8.2.170.0070.01022.96
8.2.160.0070.00722.12
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0070.00022.22
8.2.110.0030.00620.32
8.2.100.0030.00917.85
8.2.90.0040.00418.34
8.2.80.0040.00417.97
8.2.70.0080.00317.63
8.2.60.0040.00417.68
8.2.50.0030.00618.07
8.2.40.0000.00719.23
8.2.30.0070.00018.05
8.2.20.0040.00417.70
8.2.10.0040.00417.72
8.2.00.0040.00417.59
8.1.270.0060.00323.71
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00522.19
8.1.230.0090.00620.93
8.1.220.0080.00017.74
8.1.210.0040.00418.99
8.1.200.0000.00917.23
8.1.190.0030.00517.50
8.1.180.0050.00318.10
8.1.170.0000.00818.56
8.1.160.0030.00621.99
8.1.150.0000.00718.44
8.1.140.0070.00017.38
8.1.130.0030.00517.86
8.1.120.0000.00717.46
8.1.110.0000.00817.32
8.1.100.0040.00417.37
8.1.90.0030.00517.43
8.1.80.0000.00917.41
8.1.70.0000.00817.39
8.1.60.0090.00017.51
8.1.50.0030.00617.31
8.1.40.0040.00417.48
8.1.30.0000.00817.56
8.1.20.0030.00517.59
8.1.10.0050.00217.43
8.1.00.0000.00717.32
8.0.300.0000.00820.12
8.0.290.0030.00617.18
8.0.280.0000.00718.43
8.0.270.0000.00717.12
8.0.260.0000.00616.80
8.0.250.0000.00617.01
8.0.240.0070.00016.97
8.0.230.0040.00417.02
8.0.220.0000.00716.90
8.0.210.0000.00716.97
8.0.200.0000.00717.04
8.0.190.0030.00317.02
8.0.180.0030.00516.86
8.0.170.0000.00816.86
8.0.160.0000.00816.99
8.0.150.0070.00016.89
8.0.140.0070.00016.80
8.0.130.0000.00613.36
8.0.120.0000.00816.95
8.0.110.0080.00016.92
8.0.100.0040.00416.76
8.0.90.0040.00416.84
8.0.80.0090.00916.87
8.0.70.0040.00416.94
8.0.60.0000.00716.90
8.0.50.0040.00416.75
8.0.30.0110.01017.16
8.0.20.0110.00717.40
8.0.10.0080.00017.00
8.0.00.0100.00616.72
7.4.330.0000.00515.00
7.4.320.0000.00716.54
7.4.300.0060.00016.50
7.4.290.0070.00016.41
7.4.280.0000.00716.52
7.4.270.0070.00016.54
7.4.260.0000.00716.36
7.4.250.0040.00416.36
7.4.240.0030.00516.49
7.4.230.0040.00316.53
7.4.220.0130.00316.46
7.4.210.0060.00916.46
7.4.200.0000.00816.36
7.4.190.0070.00016.67
7.4.160.0110.00716.52
7.4.150.0130.00717.40
7.4.140.0070.01117.86
7.4.130.0060.01416.41
7.4.120.0150.00716.53
7.4.110.0090.00916.41
7.4.100.0090.00916.37
7.4.90.0070.01016.50
7.4.80.0060.01516.55
7.4.70.0100.00716.37
7.4.60.0100.00716.40
7.4.50.0040.00416.27
7.4.40.0090.00322.77
7.4.30.0130.00416.41
7.4.00.0080.00815.02
7.3.330.0000.00513.11
7.3.320.0050.00013.30
7.3.310.0030.00316.43
7.3.300.0000.00616.34
7.3.290.0090.00616.33
7.3.280.0070.01316.39
7.3.270.0120.00617.40
7.3.260.0060.01216.50
7.3.250.0190.00216.40
7.3.240.0100.00616.32
7.3.230.0120.00416.39
7.3.210.0060.01116.46
7.3.200.0090.01119.39
7.3.190.0000.02216.29
7.3.180.0100.00616.54
7.3.170.0110.01116.40
7.3.160.0120.00916.46
7.3.120.0080.00714.95
7.3.110.0070.01114.94
7.3.100.0030.01314.77
7.3.90.0070.00714.70
7.3.80.0030.01014.84
7.3.70.0120.00614.66
7.3.60.0070.00714.74
7.3.50.0000.01114.77
7.3.40.0030.00914.93
7.3.30.0080.00414.84
7.3.20.0000.01416.84
7.3.10.0050.00716.58
7.3.00.0090.00416.54
7.2.330.0040.01516.76
7.2.320.0080.01616.72
7.2.310.0120.01216.38
7.2.300.0110.00616.60
7.2.290.0070.01016.50
7.2.250.0110.00314.86
7.2.240.0030.01614.69
7.2.230.0000.01415.28
7.2.220.0000.01514.91
7.2.210.0070.00414.94
7.2.200.0060.00914.97
7.2.190.0060.00614.95
7.2.180.0120.00314.65
7.2.170.0040.01114.78
7.2.130.0030.00916.83
7.2.120.0040.01416.82
7.2.110.0060.00616.76
7.2.100.0060.00916.87
7.2.90.0100.00716.79
7.2.80.0060.00917.03
7.2.70.0030.00816.91
7.2.60.0040.00816.85
7.2.50.0030.00716.96
7.2.40.0030.00616.64
7.2.30.0070.00717.13
7.2.20.0080.00517.05
7.2.10.0130.00016.76
7.2.00.0030.01018.17
7.1.330.0070.00715.74
7.1.320.0060.00615.64
7.1.310.0000.01115.98
7.1.300.0040.01115.39
7.1.290.0090.00015.66
7.1.280.0000.01515.80
7.1.270.0030.00615.40
7.1.260.0060.00615.44
7.1.250.0030.00615.77
7.1.200.0060.00615.72
7.1.100.0030.01018.01
7.1.70.0120.00317.14
7.1.60.0090.00316.86
7.1.50.0040.01116.82
7.1.00.0030.07722.30
7.0.200.0040.01116.61
7.0.140.0030.07321.93
7.0.60.0030.08319.94
7.0.50.0070.07717.79
7.0.40.0030.07720.39
7.0.30.0170.06020.21
7.0.20.0230.08720.20
7.0.10.0270.07720.01
7.0.00.0030.09020.11
5.6.280.0170.06021.02
5.6.210.0070.08720.52
5.6.200.0030.06318.12
5.6.190.0000.08020.77
5.6.180.0270.05020.40
5.6.170.0230.05720.38
5.6.160.0030.04320.47
5.6.150.0000.05318.11
5.6.140.0070.03318.11
5.6.130.0070.05718.20
5.6.120.0070.05020.98
5.6.110.0100.08720.98
5.6.100.0130.08021.12
5.6.90.0200.06721.12
5.6.80.0030.06720.48
5.6.70.3600.04020.52
5.5.350.0330.07020.34
5.5.340.0070.04717.92
5.5.330.0130.08020.46
5.5.320.0170.08320.20
5.5.310.0300.07320.27
5.5.300.0070.04018.02
5.5.290.0030.05317.98
5.5.280.0100.07720.64
5.5.270.0030.04320.78
5.5.260.0030.08020.86
5.5.250.0130.06020.42
5.5.240.0100.07320.06
5.4.450.0600.05319.63
5.4.440.0130.06019.59
5.4.430.0900.05019.54
5.4.420.0070.05719.62
5.4.410.0070.06018.79
5.4.400.0100.05318.77
5.4.390.0130.05018.72
5.4.380.0100.06018.71
5.4.370.0200.04718.50
5.4.360.0070.06718.46
5.4.350.0070.06318.72
5.4.340.0170.05018.52
5.4.320.0080.04012.46
5.4.310.0090.03712.45
5.4.300.0060.03512.45
5.4.290.0080.04012.45
5.4.280.0150.05312.32
5.4.270.0090.05512.32
5.4.260.0100.05012.32
5.4.250.0070.05412.32
5.4.240.0070.06212.32
5.4.230.0070.05912.31
5.4.220.0120.04012.31
5.4.210.0060.04412.31
5.4.200.0060.03912.31
5.4.190.0070.03912.30
5.4.180.0090.03912.31
5.4.170.0070.04012.32
5.4.160.0050.04212.31
5.4.150.0080.03812.31
5.4.140.0070.04012.00
5.4.130.0090.03711.98
5.4.120.0070.04611.94
5.4.110.0120.06411.93
5.4.100.0160.06311.94
5.4.90.0190.07311.93
5.4.80.0130.08111.94
5.4.70.0170.05511.93
5.4.60.0120.04711.93
5.4.50.0070.05411.93
5.4.40.0100.05611.92
5.4.30.0160.06911.92
5.4.20.0150.06311.92
5.4.10.0090.06811.92
5.4.00.0130.06411.41
5.3.290.0110.04312.80
5.3.280.0140.03712.71
5.3.270.0100.04112.73
5.3.260.0090.04512.72
5.3.250.0100.04812.71
5.3.240.0110.03912.72
5.3.230.0070.05712.71
5.3.220.0080.04912.68
5.3.210.0180.06112.68
5.3.200.0150.06312.68
5.3.190.0090.05212.68
5.3.180.0160.08512.68
5.3.170.0110.05212.67
5.3.160.0130.05412.68
5.3.150.0170.03912.67
5.3.140.0150.08912.66
5.3.130.0100.07112.66
5.3.120.0060.06512.66
5.3.110.0230.08412.66
5.3.100.0080.05112.12
5.3.90.0100.05212.08
5.3.80.0350.06412.07
5.3.70.0640.09712.07
5.3.60.0350.07912.07
5.3.50.0160.04812.00
5.3.40.0130.04912.00
5.3.30.0110.03611.94
5.3.20.0180.06911.70
5.3.10.0210.07311.66
5.3.00.0080.04911.66
5.2.170.0060.0439.15
5.2.160.0190.0629.15
5.2.150.0040.0599.15
5.2.140.0040.0519.14
5.2.130.0080.0419.11
5.2.120.0090.0439.11
5.2.110.0080.0349.11
5.2.100.0100.0329.11
5.2.90.0070.0329.11
5.2.80.0080.0589.11
5.2.70.0100.0649.11
5.2.60.0130.0659.06
5.2.50.0230.0819.03
5.2.40.0050.0329.00
5.2.30.0100.0358.98
5.2.20.0100.0318.96
5.2.10.0130.0348.89
5.2.00.0230.0378.76
5.1.60.0080.0258.04
5.1.50.0110.0948.04
5.1.40.0050.0398.03
5.1.30.0180.1108.38
5.1.20.0210.0738.40
5.1.10.0040.0428.12
5.1.00.0050.0418.12
5.0.50.0100.0276.60
5.0.40.0060.0316.46
5.0.30.0050.0486.27
5.0.20.0050.0326.24
5.0.10.0120.0506.23
5.0.00.0120.0536.21
4.4.90.0130.0344.77
4.4.80.0070.0254.75
4.4.70.0100.0344.75
4.4.60.0090.0214.75
4.4.50.0070.0284.77
4.4.40.0090.0434.71
4.4.30.0070.0264.76
4.4.20.0100.0254.85
4.4.10.0090.0244.85
4.4.00.0020.0394.76
4.3.110.0050.0244.67
4.3.100.0050.0234.66
4.3.90.0080.0284.63
4.3.80.0050.0334.58
4.3.70.0050.0234.63
4.3.60.0120.0424.63
4.3.50.0050.0244.63
4.3.40.0100.0584.54
4.3.30.0070.0493.28
4.3.20.0060.0473.25
4.3.10.0030.0183.21
4.3.00.0130.02313.64

preferences:
43.3 ms | 400 KiB | 5 Q