3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 1; // "$i" is a simple variable that will represent our loop's iteration number while ($i <= 8) { // forces the while loop to have an iteration ceiling of 8 and no more echo 'I am index ' . $i . ' of this while loop. <br />'; $i++; // increment value by one each time the loop iterates } ?>

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.70.0150.00016.50
8.3.60.0040.01118.30
8.3.50.0080.01016.53
8.3.40.0100.01018.71
8.3.30.0080.00818.71
8.3.20.0060.00318.58
8.3.10.0050.00320.53
8.3.00.0000.00817.46
8.2.180.0100.00716.32
8.2.170.0150.00622.96
8.2.160.0070.00722.16
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00719.89
8.2.110.0100.00021.14
8.2.100.0040.00717.84
8.2.90.0030.00619.17
8.2.80.0040.00418.04
8.2.70.0030.00617.50
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00818.13
8.2.30.0000.00718.07
8.2.20.0000.00717.56
8.2.10.0070.00017.63
8.2.00.0000.00717.59
8.1.280.0120.00625.92
8.1.270.0070.00023.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00322.47
8.1.230.0040.00720.92
8.1.220.0060.00317.74
8.1.210.0060.00318.91
8.1.200.0030.00617.35
8.1.190.0080.00017.43
8.1.180.0050.00318.10
8.1.170.0040.00420.75
8.1.160.0000.00718.80
8.1.150.0000.00818.70
8.1.140.0030.00617.41
8.1.130.0000.00717.84
8.1.120.0070.00017.46
8.1.110.0030.00617.50
8.1.100.0070.00017.43
8.1.90.0020.00517.34
8.1.80.0040.00417.42
8.1.70.0030.00317.36
8.1.60.0040.00417.51
8.1.50.0040.00417.52
8.1.40.0100.00017.51
8.1.30.0000.00717.68
8.1.20.0040.00417.48
8.1.10.0040.00417.51
8.1.00.0000.01117.39
8.0.300.0000.00719.94
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0030.00317.17
8.0.260.0000.00616.83
8.0.250.0050.00216.85
8.0.240.0070.00316.92
8.0.230.0070.00016.93
8.0.220.0000.00716.80
8.0.210.0030.00316.85
8.0.200.0000.00916.95
8.0.190.0090.00016.95
8.0.180.0000.00716.92
8.0.170.0060.00316.86
8.0.160.0000.00717.00
8.0.150.0040.00416.94
8.0.140.0040.00416.78
8.0.130.0030.00313.36
8.0.120.0060.00316.83
8.0.110.0040.00416.95
8.0.100.0040.00416.79
8.0.90.0050.00216.93
8.0.80.0110.00416.82
8.0.70.0000.00716.86
8.0.60.0040.00416.79
8.0.50.0070.00016.63
8.0.30.0100.00817.07
8.0.20.0130.00717.14
8.0.10.0000.00716.82
8.0.00.0090.01116.70
7.4.330.0020.00214.70
7.4.320.0060.00016.46
7.4.300.0070.00016.45
7.4.290.0000.00716.45
7.4.280.0060.00316.45
7.4.270.0000.00616.41
7.4.260.0040.00413.25
7.4.250.0080.00016.50
7.4.240.0030.00316.55
7.4.230.0000.00716.45
7.4.220.0150.00016.59
7.4.210.0070.00716.49
7.4.200.0000.00716.28
7.4.190.0000.00716.67
7.4.160.0110.00416.61
7.4.150.0070.01017.07
7.4.140.0080.01317.08
7.4.130.0120.00616.52
7.4.120.0100.00816.41
7.4.110.0070.01316.47
7.4.100.0060.01216.52
7.4.90.0070.01016.50
7.4.80.0130.00318.80
7.4.70.0150.00316.34
7.4.60.0070.01016.53
7.4.50.0000.00816.35
7.4.40.0000.01321.94
7.4.30.0120.00316.50
7.4.00.0100.00514.88
7.3.330.0000.00713.00
7.3.320.0000.00513.08
7.3.310.0000.00816.30
7.3.300.0030.00316.21
7.3.290.0000.01316.32
7.3.280.0080.00816.24
7.3.270.0070.01117.07
7.3.260.0120.00718.24
7.3.250.0140.00616.42
7.3.240.0090.01416.59
7.3.230.0210.00016.30
7.3.210.0070.01016.21
7.3.200.0030.01419.39
7.3.190.0140.00316.51
7.3.180.0070.01416.29
7.3.170.0110.00516.44
7.3.160.0090.00616.42
7.3.120.0070.00914.91
7.3.110.0070.00914.80
7.3.100.0140.00014.79
7.3.90.0020.01014.60
7.3.80.0050.01014.61
7.3.70.0040.00614.83
7.3.60.0020.01214.74
7.3.50.0090.00414.83
7.3.40.0050.00814.86
7.3.30.0030.00914.77
7.3.20.0020.01216.65
7.3.10.0050.00716.62
7.3.00.0030.01016.70
7.2.330.0080.01116.62
7.2.320.0120.00616.69
7.2.310.0130.00616.38
7.2.300.0100.00716.46
7.2.290.0100.00616.61
7.2.250.0080.01215.29
7.2.240.0080.01014.87
7.2.230.0070.00815.01
7.2.220.0050.00914.64
7.2.210.0100.00615.21
7.2.200.0050.01114.94
7.2.190.0060.00914.90
7.2.180.0030.01214.97
7.2.170.0090.00614.95
7.2.160.0090.00615.11
7.2.150.0100.00316.89
7.2.140.0110.00416.91
7.2.130.0030.00716.96
7.2.120.0060.01016.92
7.2.110.0060.00916.95
7.2.100.0060.00916.77
7.2.90.0050.00517.08
7.2.80.0160.00316.98
7.2.70.0090.00916.82
7.2.60.0070.01017.02
7.2.50.0030.00916.96
7.2.40.0070.00716.98
7.2.30.0000.01717.02
7.2.20.0070.00716.98
7.2.10.0040.01116.64
7.2.00.0020.01218.20
7.1.330.0080.00815.77
7.1.320.0030.01315.71
7.1.310.0080.00615.72
7.1.300.0010.00915.61
7.1.290.0010.01015.83
7.1.280.0050.01015.74
7.1.270.0030.00915.78
7.1.260.0070.00515.60
7.1.250.0030.01115.78
7.1.100.0100.00318.38
7.1.70.0080.00016.86
7.1.60.0060.01919.40
7.1.50.0070.01416.96
7.1.00.0030.06722.47
7.0.200.0030.00316.81
7.0.140.0000.07722.04
7.0.120.0000.03322.09
7.0.60.0200.07020.00
7.0.50.0030.08717.85
7.0.40.0130.07017.79
7.0.30.0100.07017.83
7.0.20.0100.08017.66
7.0.10.0100.08017.75
7.0.00.0030.06017.66
5.6.280.0070.07021.08
5.6.210.0070.04320.62
5.6.200.0070.04018.22
5.6.190.0030.06318.15
5.6.180.0000.04718.18
5.6.170.0100.04018.21
5.6.160.0070.06318.22
5.6.150.0030.04318.12
5.6.140.0130.07318.16
5.6.130.0100.08318.14
5.6.120.0030.08318.17
5.6.110.0070.07718.21
5.6.100.0100.07318.15
5.6.90.0100.04018.16
5.6.80.0030.06317.57
5.6.70.0100.07317.57
5.6.60.0070.06017.52
5.6.50.0100.05717.57
5.6.40.0100.07017.45
5.6.30.0030.07317.57
5.6.20.0100.07317.56
5.6.10.0070.03317.57
5.6.00.0000.05017.44
5.5.350.0100.07320.29
5.5.340.0130.07317.91
5.5.330.0170.07718.01
5.5.320.0100.05018.01
5.5.310.0200.07717.96
5.5.300.0100.07717.91
5.5.290.0030.07717.95
5.5.280.0070.07717.98
5.5.270.0030.06018.01
5.5.260.0000.07018.02
5.5.250.0030.04317.77
5.5.240.0000.04317.34
5.5.230.0030.05317.27
5.5.220.0100.07017.34
5.5.210.0100.04717.36
5.5.200.0030.04017.37
5.5.190.0000.04317.23
5.5.180.0170.04717.30
5.5.160.0100.03017.32
5.5.150.0100.07717.28
5.5.140.0070.04017.33
5.5.130.0030.04717.30
5.5.120.0070.03717.25
5.5.110.0100.03317.34
5.5.100.0000.04017.14
5.5.90.0030.03717.22
5.5.80.0030.04017.27
5.5.70.0100.03017.22
5.5.60.0030.03717.23
5.5.50.0030.03717.21
5.5.40.0100.03017.13
5.5.30.0000.04017.21
5.5.20.0030.03717.20
5.5.10.0000.04317.20
5.5.00.0030.03717.25
5.4.450.0130.07719.32
5.4.440.0030.07719.36
5.4.430.0100.05719.30
5.4.420.0170.07319.39
5.4.410.0030.04019.15
5.4.400.0100.07318.99
5.4.390.0030.04319.11
5.4.380.0100.07719.09
5.4.370.0070.07718.98
5.4.360.0070.04319.07
5.4.350.0070.05318.98
5.4.340.0170.03318.82
5.4.320.0070.08019.22
5.4.310.0070.04719.09
5.4.300.0070.06319.09
5.4.290.0030.04319.12
5.4.280.0100.05318.98
5.4.270.0070.03719.09
5.4.260.0100.03018.98
5.4.250.0000.04019.07
5.4.240.0030.03718.88
5.4.230.0070.03319.10
5.4.220.0030.03719.06
5.4.210.0030.04018.96
5.4.200.0000.04318.98
5.4.190.0100.03018.79
5.4.180.0030.03719.11
5.4.170.0070.03318.95
5.4.160.0030.03719.09
5.4.150.0030.04019.01
5.4.140.0070.03016.17
5.4.130.0030.03316.17
5.4.120.0000.03716.26
5.4.110.0070.03716.38
5.4.100.0070.03016.25
5.4.90.0030.03316.41
5.4.80.0000.03716.27
5.4.70.0000.03716.51
5.4.60.0070.03016.25
5.4.50.0030.03316.28
5.4.40.0070.03316.43
5.4.30.0000.03716.20
5.4.20.0070.04016.14
5.4.10.0030.03316.26
5.4.00.0070.03315.81
5.3.290.0030.07314.48
5.3.280.0070.04014.34
5.3.270.0000.04014.57
5.3.260.0030.03714.58
5.3.250.0030.03714.46
5.3.240.0000.03714.59
5.3.230.0000.04014.55
5.3.220.0000.04014.42
5.3.210.0070.03314.39
5.3.200.0030.04014.54
5.3.190.0100.03014.56
5.3.180.0030.03314.39
5.3.170.0030.03714.50
5.3.160.0000.03714.63
5.3.150.0070.03714.53
5.3.140.0030.03714.63
5.3.130.0070.03314.52
5.3.120.0030.04014.51
5.3.110.0070.03714.62
5.3.100.0030.07714.00
5.3.90.0000.07313.98
5.3.80.0030.05314.08
5.3.70.0100.07314.08
5.3.60.0100.05713.95
5.3.50.0030.06013.93
5.3.40.0070.04313.88
5.3.30.0000.04713.88
5.3.20.0030.03713.62
5.3.10.0030.07713.60
5.3.00.0030.07313.57
5.2.170.0030.03011.14
5.2.160.0030.06311.06
5.2.150.0100.05011.12
5.2.140.0070.08011.13
5.2.130.0100.03010.93
5.2.120.0000.03011.09
5.2.110.0070.03011.09
5.2.100.0030.06010.92
5.2.90.0030.03311.07
5.2.80.0000.04311.11
5.2.70.0100.05710.93
5.2.60.0070.02710.94
5.2.50.0030.03311.00
5.2.40.0000.03710.96
5.2.30.0100.05711.11
5.2.20.0000.03711.09
5.2.10.0130.05010.94
5.2.00.0000.03010.57
5.1.60.0030.0409.98
5.1.50.0030.04010.09
5.1.40.0100.04710.06
5.1.30.0070.03710.21
5.1.20.0070.05710.44
5.1.10.0000.04710.27
5.1.00.0070.03010.03
5.0.50.0030.0238.50
5.0.40.0030.0478.36
5.0.30.0030.0338.32
5.0.20.0030.0208.32
5.0.10.0000.0208.32
5.0.00.0000.0378.32
4.4.90.0000.0208.32
4.4.80.0000.0238.32
4.4.70.0030.0178.32
4.4.60.0000.0178.32
4.4.50.0030.0278.32
4.4.40.0170.0178.32
4.4.30.0030.0208.32
4.4.20.0030.0178.32
4.4.10.0000.0308.32
4.4.00.0030.0538.32
4.3.110.0070.0138.32
4.3.100.0000.0208.32
4.3.90.0030.0138.32
4.3.80.0000.0238.32
4.3.70.0000.0138.32
4.3.60.0000.0178.32
4.3.50.0070.0108.32
4.3.40.0030.0238.32
4.3.30.0030.0138.32
4.3.20.0000.0178.32
4.3.10.0000.0178.32
4.3.00.0070.0208.32

preferences:
38.79 ms | 401 KiB | 5 Q