3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tries = 10; foreach($array as $key => $value) { while ($tries > 0) { $tries--; } }

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.90.0090.00618.43
8.3.80.0040.00418.43
8.3.70.0140.00316.50
8.3.60.0130.00618.45
8.3.50.0080.00817.60
8.3.40.0040.01418.85
8.3.30.0070.00718.76
8.3.20.0040.00418.77
8.3.10.0070.00021.65
8.3.00.0040.00423.53
8.2.210.0150.00426.77
8.2.200.0060.00316.75
8.2.190.0140.00416.63
8.2.180.0180.00316.38
8.2.170.0030.01222.96
8.2.160.0100.00719.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.60
8.2.120.0030.00326.35
8.2.110.0100.00019.20
8.2.100.0000.01117.84
8.2.90.0000.00917.84
8.2.80.0040.00419.12
8.2.70.0000.00817.63
8.2.60.0000.00817.63
8.2.50.0030.00617.63
8.2.40.0030.00621.16
8.2.30.0050.00319.14
8.2.20.0030.00617.91
8.2.10.0080.00017.93
8.2.00.0000.00719.41
8.1.290.0060.00318.88
8.1.280.0140.00325.92
8.1.270.0080.01120.23
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0100.00721.31
8.1.230.0090.00322.63
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0040.00418.82
8.1.150.0050.00518.84
8.1.140.0040.00417.73
8.1.130.0030.00318.91
8.1.120.0000.00817.38
8.1.110.0030.00617.35
8.1.100.0070.00017.33
8.1.90.0000.00717.28
8.1.80.0030.00417.46
8.1.70.0000.00717.36
8.1.60.0000.00717.54
8.1.50.0050.00317.42
8.1.40.0030.00617.55
8.1.30.0000.00817.66
8.1.20.0040.00417.64
8.1.10.0040.00417.42
8.1.00.0050.00217.29
8.0.300.0070.00019.98
8.0.290.0040.00416.63
8.0.280.0030.00318.41
8.0.270.0000.00916.75
8.0.260.0090.00017.21
8.0.250.0030.00317.04
8.0.240.0030.00316.99
8.0.230.0020.00517.03
8.0.220.0070.00016.97
8.0.210.0070.00016.88
8.0.200.0030.00316.90
8.0.190.0000.00716.90
8.0.180.0030.00516.95
8.0.170.0040.00416.86
8.0.160.0040.00417.03
8.0.150.0080.00016.87
8.0.140.0080.00016.91
8.0.130.0060.00013.38
8.0.120.0080.00016.90
8.0.110.0000.00816.93
8.0.100.0030.00516.75
8.0.90.0000.00716.87
8.0.80.0070.01016.90
8.0.70.0030.00516.72
8.0.60.0070.00016.84
8.0.50.0040.00416.83
8.0.30.0110.00917.07
8.0.20.0060.01317.40
8.0.10.0050.00317.04
8.0.00.0070.01216.69
7.4.330.0000.00415.55
7.4.320.0030.00316.54
7.4.300.0030.00316.49
7.4.290.0030.00516.50
7.4.280.0090.00016.47
7.4.270.0000.00716.52
7.4.260.0030.00716.43
7.4.250.0000.00716.55
7.4.240.0030.00316.37
7.4.230.0030.00316.47
7.4.220.0000.00716.69
7.4.210.0060.00816.59
7.4.200.0030.00316.41
7.4.160.0100.00716.58
7.4.140.0080.00917.86
7.4.130.0170.00316.47
7.4.120.0110.00816.51
7.4.110.0060.01016.47
7.4.100.0090.00616.64
7.4.90.0140.00816.44
7.4.80.0110.00619.39
7.4.70.0090.00616.52
7.4.60.0120.00916.64
7.4.50.0110.00616.35
7.4.40.0060.01616.16
7.4.00.0030.01014.74
7.3.330.0000.00613.15
7.3.320.0030.00313.09
7.3.310.0030.00316.09
7.3.300.0060.00016.15
7.3.290.0030.00316.16
7.3.280.0070.00716.27
7.3.260.0090.01016.43
7.3.240.0100.00716.27
7.3.230.0150.00316.36
7.3.210.0120.00616.40
7.3.200.0040.01416.34
7.3.190.0030.01316.16
7.3.180.0080.01216.29
7.3.170.0100.00616.32
7.3.160.0060.01616.39
7.3.10.0110.00716.22
7.3.00.0090.00616.39
7.2.330.0060.01316.56
7.2.320.0030.01316.30
7.2.310.0130.01016.39
7.2.300.0100.00716.49
7.2.290.0100.00716.41
7.2.130.0110.00716.61
7.2.120.0040.00816.70
7.2.110.0030.01116.57
7.2.100.0090.00916.43
7.2.90.0130.01216.65
7.2.80.0090.00516.62
7.2.70.0210.00516.16
7.2.60.0150.00716.11
7.2.50.0120.01016.14
7.2.40.0130.00916.03
7.2.30.0090.01416.10
7.2.20.0160.00515.79
7.2.10.0130.01015.93
7.2.00.0120.00916.00
7.1.250.0050.01115.50
7.1.200.0070.00715.39
7.1.170.0190.00913.62
7.1.160.0210.00613.83
7.1.150.0170.00713.87
7.1.140.0210.00613.59
7.1.130.0240.00313.70
7.1.120.0920.01013.83
7.1.110.0170.00613.74
7.1.100.0130.01613.61
7.1.90.0540.00713.44
7.1.80.0170.01213.47
7.1.70.0210.00713.42
7.1.60.0380.02131.53
7.1.50.0360.01431.55
7.1.40.0410.01331.79
7.1.30.0330.01231.59
7.1.20.0300.02031.40
7.1.10.0200.00613.21
7.1.00.0200.00313.70

preferences:
28.99 ms | 401 KiB | 5 Q