3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = []; // make some array for testing for($i=0; $i < 100; $i++) $array["key$i"] = $i; for($i=0; $i < 1000000; $i++) { reset($array); $firstKey = key($array); }

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.140.0070.06316.48
8.3.130.0100.04518.44
8.3.120.0070.05018.60
8.3.110.0100.03620.94
8.3.100.0060.02816.65
8.3.90.0030.04326.77
8.3.80.0070.03418.35
8.3.70.0170.07116.58
8.3.60.0070.08318.30
8.3.50.0100.06821.88
8.3.40.0160.06518.85
8.3.30.0130.05219.25
8.3.20.0070.04420.25
8.3.10.0070.02921.73
8.3.00.0060.02919.07
8.2.250.0100.05718.54
8.2.240.0030.03316.93
8.2.230.0000.03722.58
8.2.220.0030.03724.06
8.2.210.0100.04826.77
8.2.200.0030.05216.25
8.2.190.0170.06416.58
8.2.180.0130.06816.38
8.2.170.0130.05519.14
8.2.160.0000.06422.96
8.2.150.0070.06225.66
8.2.140.0000.03524.66
8.2.130.0030.03226.16
8.2.120.0030.03220.70
8.2.110.0100.05919.14
8.2.100.0000.04117.97
8.2.90.0030.04019.17
8.2.80.0030.03417.97
8.2.70.0070.03717.50
8.2.60.0030.03618.05
8.2.50.0030.03417.91
8.2.40.0090.03417.77
8.2.30.0050.03917.87
8.2.20.0070.03817.73
8.2.10.0080.03717.79
8.2.00.0090.03517.65
8.1.300.0070.04719.80
8.1.290.0060.03530.84
8.1.280.0160.04925.92
8.1.270.0090.02523.99
8.1.260.0030.03126.35
8.1.250.0090.02528.09
8.1.240.0060.05822.42
8.1.230.0110.03222.18
8.1.220.0070.03917.77
8.1.210.0000.04718.77
8.1.200.0040.04217.23
8.1.190.0030.04017.39
8.1.180.0000.04418.10
8.1.170.0030.04217.62
8.1.160.0100.03818.16
8.1.150.0080.03718.09
8.1.140.0040.04817.48
8.1.130.0070.03617.99
8.1.120.0080.04217.84
8.1.110.0040.04317.88
8.1.100.0070.03817.86
8.1.90.0050.04117.89
8.1.80.0060.03917.87
8.1.70.0060.04117.90
8.1.60.0060.04517.94
8.1.50.0100.04217.88
8.1.40.0080.04217.91
8.1.30.0060.04617.97
8.1.20.0090.04418.02
8.1.10.0050.05017.95
8.1.00.0080.04217.94
8.0.300.0000.03818.77
8.0.290.0030.04116.75
8.0.280.0090.04118.05
8.0.270.0110.04017.22
8.0.260.0030.04917.58
8.0.250.0060.04317.52
8.0.240.0050.04217.52
8.0.230.0050.04517.54
8.0.220.0040.04117.49
8.0.210.0080.03717.48
8.0.200.0020.04517.49
8.0.190.0080.04317.56
8.0.180.0040.04517.47
8.0.170.0030.04417.51
8.0.160.0040.04317.55
8.0.150.0080.04417.46
8.0.140.0040.04417.41
8.0.130.0080.04316.32
8.0.120.0070.04217.46
8.0.110.0060.04817.41
8.0.100.0040.04717.48
8.0.90.0090.04017.46
8.0.80.0030.05317.50
8.0.70.0050.04517.42
8.0.60.0070.03817.40
8.0.50.0070.03917.42
8.0.30.0090.04517.38
8.0.20.0110.05317.62
8.0.10.0050.04717.53
8.0.00.0110.05817.28
7.4.330.0070.04616.67
7.4.320.0090.04917.18
7.4.300.0080.04717.27
7.4.290.0120.04817.23
7.4.280.0140.05117.19
7.4.270.0050.05517.23
7.4.260.0140.04817.22
7.4.250.0060.05317.23
7.4.240.0070.05017.21
7.4.230.0110.04617.27
7.4.220.0080.05117.16
7.4.210.0130.05317.24
7.4.200.0090.04817.25
7.4.190.0100.04617.67
7.4.180.0060.04917.57
7.4.160.0080.05417.23
7.4.150.0130.04617.54
7.4.140.0070.05617.74
7.4.130.0120.05417.03
7.4.120.0120.05216.98
7.4.110.0130.05117.23
7.4.100.0080.06117.25
7.4.90.0130.05017.27
7.4.80.0130.06118.22
7.4.70.0130.04817.23
7.4.60.0060.05417.17
7.4.50.0110.04217.11
7.4.40.0060.05317.14
7.4.30.0110.06417.19
7.4.20.0080.04717.61
7.4.10.0100.05317.59
7.4.00.0080.07116.02
7.3.330.0060.05616.06
7.3.320.0090.05516.08
7.3.310.0100.05717.13
7.3.300.0080.05517.14
7.3.290.0090.05717.12
7.3.280.0100.06616.80
7.3.270.0170.06517.50
7.3.260.0110.07517.15
7.3.250.0110.06316.96
7.3.240.0120.06017.21
7.3.230.0150.05717.17
7.3.220.0070.06417.49
7.3.210.0120.05817.08
7.3.200.0070.06617.11
7.3.190.0110.05917.10
7.3.180.0120.05717.20
7.3.170.0070.06317.21
7.3.160.0100.06217.12
7.3.150.0120.05317.52
7.3.140.0130.05417.54
7.3.130.0030.06117.49
7.3.120.0070.08216.28
7.3.110.0110.07616.21
7.3.100.0060.06616.21
7.3.90.0100.06916.29
7.3.80.0060.06216.18
7.3.70.0080.06316.15
7.3.60.0020.07716.12
7.3.50.0070.06516.18
7.3.40.0070.05816.26
7.3.30.0090.06116.17
7.3.20.0070.06217.17
7.3.10.0110.06117.08
7.3.00.0070.06417.10
7.2.340.0110.05217.50
7.2.330.0120.06517.22
7.2.320.0100.06017.27
7.2.310.0110.07117.23
7.2.300.0060.06517.15
7.2.290.0110.06217.25
7.2.280.0130.05617.51
7.2.270.0100.05817.50
7.2.260.0140.05117.62
7.2.250.0120.06516.32
7.2.240.0080.07316.32
7.2.230.0040.06816.35
7.2.220.0070.07316.41
7.2.210.0080.07016.33
7.2.200.0070.07616.34
7.2.190.0090.07116.17
7.2.180.0070.07016.24
7.2.170.0090.07016.31
7.2.160.0070.05917.55
7.2.150.0120.05517.62
7.2.140.0100.05317.57
7.2.130.0130.05617.70
7.2.120.0130.06117.61
7.2.110.0080.06917.75
7.2.100.0100.06117.65
7.2.90.0170.05117.60
7.2.80.0140.05417.61
7.2.70.0290.07016.85
7.2.60.0200.06616.85
7.2.50.0180.06316.83
7.2.40.0250.07716.71
7.2.30.0210.06116.77
7.2.20.0250.07316.80
7.2.10.0270.06916.86
7.2.00.0240.06617.51
7.1.330.0120.09816.71
7.1.320.0110.09916.60
7.1.310.0070.10716.67
7.1.300.0100.09516.67
7.1.290.0080.10616.62
7.1.280.0110.10116.67
7.1.270.0050.10316.61
7.1.260.0080.10816.72
7.1.250.0140.06017.49
7.1.240.0100.06117.49
7.1.230.0130.06317.49
7.1.220.0140.05717.49
7.1.210.0050.06617.49
7.1.200.0100.06216.82
7.1.190.0050.06417.49
7.1.180.0080.06017.49
7.1.170.0200.06716.27
7.1.160.0230.08516.27
7.1.150.0280.07916.28
7.1.140.0250.07016.33
7.1.130.0250.07416.27
7.1.120.0270.06816.26
7.1.110.0330.06616.31
7.1.100.0160.07016.31
7.1.90.0300.07416.23
7.1.80.0260.07116.32
7.1.70.0200.06916.60
7.1.60.0300.09620.99
7.1.50.0210.07020.91
7.1.40.0260.07320.85
7.1.30.0290.07120.93
7.1.20.0260.06920.91
7.1.10.0160.07016.26
7.1.00.0160.07316.42
7.0.330.0070.06717.49
7.0.320.0080.06217.49
7.0.310.0130.06217.49
7.0.300.0210.06416.17
7.0.290.0190.07916.17
7.0.280.0130.05517.49
7.0.270.0230.07116.12
7.0.260.0230.07816.10
7.0.250.0230.07616.16
7.0.240.0690.06916.22
7.0.230.0320.08316.21
7.0.220.0250.07516.16
7.0.210.0220.07716.20
7.0.200.0260.07616.26
7.0.190.0110.08016.31
7.0.180.0640.07416.25
7.0.170.0220.07516.24
7.0.160.0210.07116.30
7.0.150.0160.07216.21
7.0.140.0160.06616.22
7.0.130.0190.06716.27
7.0.120.0190.06816.31
7.0.110.0200.07816.22
7.0.100.0230.06416.20
7.0.90.0190.06116.23
7.0.80.0170.06016.23
7.0.70.0180.06516.19
7.0.60.0180.06916.26
7.0.50.0190.07916.31
7.0.40.0170.06415.90
7.0.30.0170.06815.94
7.0.20.0200.06515.95
7.0.10.0170.07115.95
7.0.00.0130.07515.95
5.6.400.0070.17317.49
5.6.390.0070.17717.49
5.6.380.0070.18217.49
5.6.370.0070.18117.49
5.6.360.0120.17917.49
5.6.350.0100.17617.49
5.6.340.0070.18517.49
5.6.330.0070.17217.49
5.6.320.0030.17217.49
5.6.310.0100.17317.49
5.6.300.0080.22517.55
5.6.290.0080.23417.46
5.6.280.0100.23517.48
5.6.270.0090.24817.71
5.6.260.0310.22217.51
5.6.250.0080.24017.60
5.6.240.0130.24517.63
5.6.230.0120.24017.53
5.6.220.0110.23017.62
5.6.210.0110.22817.51
5.6.200.0140.20117.54
5.6.190.0070.24517.58
5.6.180.0070.25317.55
5.6.170.0130.23117.54
5.6.160.0090.23317.53
5.6.150.0070.22017.57
5.6.140.0090.22117.61
5.6.130.0080.24217.54
5.6.120.0120.22317.58
5.6.110.0100.22617.58
5.6.100.0080.23817.49
5.6.90.0050.22017.59
5.6.80.0130.20617.36
5.6.70.0110.20517.36
5.6.60.0070.21217.41
5.6.50.0070.24717.39
5.6.40.0130.25517.35
5.6.30.0090.23917.41
5.6.20.0040.23317.42
5.6.10.0100.20717.36
5.6.00.0080.21817.28
5.5.380.0140.22115.83
5.5.370.0070.24015.96
5.5.360.0070.22815.91
5.5.350.0100.22115.84
5.5.340.0100.22015.95
5.5.330.0090.22615.95
5.5.320.0100.23516.07
5.5.310.0090.24016.02
5.5.300.0100.24016.04
5.5.290.0110.23316.02
5.5.280.0080.25116.06
5.5.270.0090.24715.99
5.5.260.0110.25115.98
5.5.250.0060.27615.98
5.5.240.0090.24815.88
5.5.230.0080.23915.89
5.5.220.0080.24215.84
5.5.210.0090.23115.90
5.5.200.0070.23015.90
5.5.190.0110.21615.89
5.5.180.0060.22315.91
5.5.170.0050.17817.49
5.5.160.0090.20715.76
5.5.150.0110.22815.82
5.5.140.0090.24715.81
5.5.130.0140.22415.85
5.5.120.0080.22415.86
5.5.110.0100.23015.84
5.5.100.0120.21315.87
5.5.90.0070.22515.84
5.5.80.0270.24415.82
5.5.70.0050.23515.78
5.5.60.0120.24715.79
5.5.50.0070.25015.86
5.5.40.0070.22415.72
5.5.30.0140.24815.87
5.5.20.0070.24215.72
5.5.10.0090.23715.75
5.5.00.0140.22915.76
5.4.450.0070.28016.34
5.4.440.0080.25316.37
5.4.430.0110.26516.42
5.4.420.0180.24816.35
5.4.410.0070.22916.29
5.4.400.0040.26216.25
5.4.390.0060.22716.24
5.4.380.0120.24516.28
5.4.370.0070.23916.24
5.4.360.0140.25616.24
5.4.350.0070.22516.36
5.4.340.0060.22116.28
5.4.330.0120.18317.49
5.4.320.0070.23016.25
5.4.310.0080.23016.20
5.4.300.0080.24416.35
5.4.290.0090.23516.25
5.4.280.0070.24216.26
5.4.270.0090.25116.35
5.4.260.0100.22016.28
5.4.250.0060.24916.27
5.4.240.0050.24016.28
5.4.230.0080.26016.19
5.4.220.0120.24616.20
5.4.210.0120.23916.25
5.4.200.0080.24716.19
5.4.190.0080.23916.22
5.4.180.0130.23116.19
5.4.170.0100.23316.29
5.4.160.0120.22616.21
5.4.150.0110.23516.22
5.4.140.0090.24515.55
5.4.130.0090.26415.68
5.4.120.0100.25215.69
5.4.110.0080.27715.66
5.4.100.0110.26115.64
5.4.90.0080.23415.66
5.4.80.0080.27915.70
5.4.70.0130.24215.70
5.4.60.0070.22915.59
5.4.50.0050.24515.60
5.4.40.0050.24315.67
5.4.30.0100.26015.54
5.4.20.0080.25115.58
5.4.10.0080.26815.61
5.4.00.0080.25515.53

preferences:
57.38 ms | 403 KiB | 5 Q