3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>While Loop</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> </head> <body> <p> <?php $Count = 0; while ($Count > 100) { $Numbers[] = $Count; ++$Count; foreach ($Count as $CurNum) echo "<p>$CurNum</p>"; } ?> </p> </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.60.0180.00418.43
8.3.50.0050.01221.93
8.3.40.0110.00418.59
8.3.30.0070.00719.05
8.3.20.0070.00020.34
8.3.10.0070.00021.95
8.3.00.0080.00022.43
8.2.180.0070.00716.63
8.2.170.0030.01622.96
8.2.160.0100.00721.98
8.2.150.0080.00025.66
8.2.140.0020.00524.66
8.2.130.0070.00726.16
8.2.120.0040.00421.02
8.2.110.0030.00722.20
8.2.100.0090.00317.63
8.2.90.0000.00719.27
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0070.00317.80
8.2.50.0060.00318.07
8.2.40.0040.00721.04
8.2.30.0000.00817.98
8.2.20.0060.00317.56
8.2.10.0080.00018.00
8.2.00.0040.00417.87
8.1.280.0070.00725.92
8.1.270.0060.00920.38
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00023.97
8.1.230.0070.00317.42
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0080.00018.48
8.1.160.0080.00021.96
8.1.150.0070.00018.74
8.1.140.0070.00017.35
8.1.130.0030.00317.70
8.1.120.0000.00717.48
8.1.110.0050.00317.43
8.1.100.0030.00317.26
8.1.90.0080.00017.45
8.1.80.0000.00917.28
8.1.70.0000.00717.36
8.1.60.0040.00417.55
8.1.50.0030.00617.35
8.1.40.0030.00617.31
8.1.30.0000.00817.43
8.1.20.0000.00717.59
8.1.10.0000.00717.41
8.1.00.0070.00017.45
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.38
8.0.270.0000.00717.17
8.0.260.0050.00217.21
8.0.250.0000.00716.96
8.0.240.0000.00716.79
8.0.230.0070.00016.90
8.0.220.0030.00316.83
8.0.210.0000.00716.80
8.0.200.0060.00016.93
8.0.190.0070.00016.84
8.0.180.0050.00316.86
8.0.170.0000.00716.85
8.0.160.0030.00316.82
8.0.150.0040.00416.82
8.0.140.0000.00716.77
8.0.130.0060.00013.28
8.0.120.0000.00716.79
8.0.110.0000.00816.73
8.0.100.0040.00416.77
8.0.90.0000.00716.80
8.0.80.0030.01216.77
8.0.70.0040.00416.86
8.0.60.0000.00816.90
8.0.50.0040.00416.70
8.0.30.0080.01316.97
8.0.20.0150.00817.40
8.0.10.0070.00016.80
8.0.00.0120.00616.79
7.4.330.0050.00015.08
7.4.320.0060.00316.46
7.4.300.0070.00016.52
7.4.290.0000.00716.45
7.4.280.0030.00816.43
7.4.270.0060.00016.44
7.4.260.0090.00016.53
7.4.250.0050.00316.55
7.4.240.0030.00316.50
7.4.230.0070.00016.65
7.4.220.0070.01316.43
7.4.210.0070.00716.46
7.4.200.0000.00716.47
7.4.160.0060.01016.42
7.4.150.0180.00017.40
7.4.140.0100.01017.86
7.4.130.0110.01216.45
7.4.120.0050.01216.42
7.4.110.0130.01316.39
7.4.100.0250.00716.50
7.4.90.0110.00716.31
7.4.80.0130.00319.39
7.4.70.0120.00916.34
7.4.60.0080.00816.32
7.4.50.0030.00516.35
7.4.40.0080.00816.20
7.4.30.0110.01116.41
7.4.00.0090.00615.14
7.3.330.0000.00613.01
7.3.320.0000.00513.05
7.3.310.0000.00816.33
7.3.300.0060.00016.21
7.3.290.0060.00816.20
7.3.280.0090.00616.18
7.3.270.0160.00417.40
7.3.260.0080.00816.14
7.3.250.0090.00916.30
7.3.240.0160.00616.31
7.3.230.0060.01116.39
7.3.210.0050.01116.29
7.3.200.0100.00716.38
7.3.190.0040.01216.43
7.3.180.0060.00916.49
7.3.170.0110.00516.44
7.3.160.0150.00616.18
7.3.10.0100.00316.68
7.3.00.0110.00016.59
7.2.330.0060.01216.43
7.2.320.0090.01316.43
7.2.310.0100.00716.41
7.2.300.0090.01216.62
7.2.290.0090.01016.57
7.2.130.0030.01016.76
7.2.120.0040.00816.93
7.2.110.0000.01416.73
7.2.100.0110.00716.86
7.2.90.0110.00316.49
7.2.80.0000.00916.66
7.2.70.0000.01216.84
7.2.60.0040.01016.68
7.2.50.0030.01016.64
7.2.40.0060.00316.75
7.2.30.0100.00616.82
7.2.20.0040.01116.82
7.2.10.0040.00916.60
7.2.00.0040.01318.11
7.1.250.0000.00915.46
7.1.200.0120.00015.66
7.1.100.0060.00617.85
7.1.70.0040.00416.99
7.1.60.0070.00417.09
7.1.50.0060.01916.98
7.1.00.0030.07322.33
7.0.200.0030.01216.53
7.0.60.0100.05719.95
7.0.50.0030.04017.82
7.0.40.0200.07319.92
7.0.30.0300.07720.17
7.0.20.0300.07320.34
7.0.10.0030.08720.16
7.0.00.0070.05020.09
5.6.280.0000.04321.07
5.6.210.0130.06320.76
5.6.200.0100.07718.12
5.6.190.0130.08020.41
5.6.180.1300.04320.77
5.6.170.0330.06320.38
5.6.160.0100.04320.40
5.6.150.0170.06318.22
5.6.140.0070.08018.22
5.6.130.0070.03718.22
5.6.120.0100.08721.01
5.6.110.0130.07720.96
5.6.100.0130.08021.00
5.6.90.0130.06321.13
5.6.80.0200.06020.37
5.6.70.4370.04720.27
5.5.350.0170.04320.43
5.5.340.0170.07317.92
5.5.330.0030.06720.37
5.5.320.0370.07720.30
5.5.310.0230.03720.34
5.5.300.0100.06317.89
5.5.290.0070.06717.97
5.5.280.0130.05720.87
5.5.270.0130.07720.75
5.5.260.0030.08720.86
5.5.250.0070.08020.61
5.5.240.0330.07020.15
5.4.450.0570.06319.61
5.4.440.0730.05719.50
5.4.430.0830.06719.54
5.4.420.0800.05019.44
5.4.410.0730.05019.30
5.4.400.0700.05319.10
5.4.390.0730.05019.16
5.4.380.0800.05319.20
5.4.370.0600.05718.93
5.4.360.0330.05719.22
5.4.350.0070.05319.22
5.4.340.0170.07719.28
5.4.320.0170.05018.70
5.4.310.0700.05719.12
5.4.300.0670.05019.25
5.4.290.0800.05318.84
5.4.280.0600.05719.08
5.4.270.0700.06018.72
5.4.260.0570.05718.72
5.4.250.0800.06318.70
5.4.240.0700.05018.71
5.4.230.0900.05019.27
5.4.220.0800.06318.71
5.4.210.0900.04319.22
5.4.200.0970.06716.87
5.4.190.0570.05718.71
5.4.180.0570.05718.80
5.4.170.0600.05719.19
5.4.160.0730.04319.13
5.4.150.0770.05718.85
5.4.140.0630.05016.34
5.4.130.0700.04016.37
5.4.120.0630.04716.16
5.4.110.0630.04716.55
5.4.100.0630.05316.42
5.4.90.0570.05716.28
5.4.80.0670.04716.22
5.4.70.0670.05016.22
5.4.60.0570.05716.40
5.4.50.0670.04716.31
5.4.40.0730.04316.36
5.4.30.0830.04316.14
5.4.20.0630.05716.39
5.4.10.0700.05016.15
5.4.00.0670.04715.70
5.3.290.0670.06314.62
5.3.280.0700.05714.59
5.3.270.0530.06714.48
5.3.260.0570.06014.47
5.3.250.0630.05314.55
5.3.240.0670.05314.55
5.3.230.0830.04314.70
5.3.220.0970.05714.51
5.3.210.0730.05714.52
5.3.200.0900.04014.49
5.3.190.0600.06014.54
5.3.180.0830.05014.54
5.3.170.0630.05014.42
5.3.160.0630.05014.43
5.3.150.0830.04014.44
5.3.140.0670.05314.53
5.3.130.0930.03714.37
5.3.120.0900.06314.49
5.3.110.0700.05714.49
5.3.100.0770.05013.87
5.3.90.0670.06013.88
5.3.80.0730.05313.90
5.3.70.0800.05713.86
5.3.60.0730.05713.78
5.3.50.0700.05713.74
5.3.40.0630.05313.90
5.3.30.0830.04713.78
5.3.20.0900.05713.48
5.3.10.0700.05313.50
5.3.00.0800.05313.66
5.2.170.0600.04711.08
5.2.160.0500.04311.04
5.2.150.0500.04310.98
5.2.140.0570.04311.24
5.2.130.0570.03710.99
5.2.120.0670.02711.04
5.2.110.0500.04310.89
5.2.100.0500.04011.18
5.2.90.0500.04711.09
5.2.80.0630.04010.95
5.2.70.0900.05010.93
5.2.60.0670.04010.99
5.2.50.0730.04310.86
5.2.40.0600.03010.79
5.2.30.0530.03710.96
5.2.20.0470.03710.96
5.2.10.0570.04710.72
5.2.00.0430.04710.61
5.1.60.0470.0339.82
5.1.50.0530.0339.88
5.1.40.0470.0379.98
5.1.30.0500.03710.34
5.1.20.0470.03710.25
5.1.10.0470.03310.23
5.1.00.0400.0439.95
5.0.50.0270.0308.52
5.0.40.0300.0278.38
5.0.30.0270.0438.16
5.0.20.0270.0278.34
5.0.10.0230.0308.09
5.0.00.0330.0578.04
4.4.90.0230.0205.80
4.4.80.0230.0205.82
4.4.70.0200.0235.81
4.4.60.0200.0275.79
4.4.50.0270.0205.87
4.4.40.0200.0375.79
4.4.30.0230.0205.82
4.4.20.0330.0205.94
4.4.10.0270.0235.85
4.4.00.0200.0375.85
4.3.110.0230.0205.69
4.3.100.0230.0205.71
4.3.90.0230.0205.75
4.3.80.0170.0375.73
4.3.70.0170.0275.74
4.3.60.0170.0275.73
4.3.50.0200.0205.77
4.3.40.0200.0335.73
4.3.30.0100.0234.43
4.3.20.0170.0204.48
4.3.10.0130.0234.48
4.3.00.0170.0236.46

preferences:
61.05 ms | 401 KiB | 5 Q