3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'FL'); while($current = next($a)) { echo "current: " . key($a) . ":" . $current; $next = next($a); echo "next: " . key($a) . ":" . $next; $nextnext = next($a); echo "nextnext: " . key($a) . ":" . $nextnext; }

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.0140.00318.31
8.3.50.0150.00721.14
8.3.40.0070.00718.86
8.3.30.0070.00720.31
8.3.20.0030.00520.34
8.3.10.0040.00420.96
8.3.00.0080.00022.25
8.2.180.0100.01016.50
8.2.170.0030.01422.96
8.2.160.0100.01022.08
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0090.00020.73
8.2.110.0110.00019.15
8.2.100.0040.00817.84
8.2.90.0050.00319.22
8.2.80.0080.00017.97
8.2.70.0060.00317.50
8.2.60.0030.00717.68
8.2.50.0030.00918.07
8.2.40.0060.00318.21
8.2.30.0030.00419.39
8.2.20.0000.00717.55
8.2.10.0000.00717.76
8.2.00.0050.00317.62
8.1.280.0120.00925.92
8.1.270.0030.00623.99
8.1.260.0140.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00322.32
8.1.230.0070.00421.04
8.1.220.0000.00818.77
8.1.210.0040.00420.79
8.1.200.0000.00917.35
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0040.00418.75
8.1.150.0000.00718.70
8.1.140.0040.00417.52
8.1.130.0000.00717.71
8.1.120.0000.00817.39
8.1.110.0040.00417.45
8.1.100.0050.00317.47
8.1.90.0000.00717.42
8.1.80.0070.00017.43
8.1.70.0000.00717.46
8.1.60.0050.00517.48
8.1.50.0040.00417.53
8.1.40.0060.00317.55
8.1.30.0030.00617.61
8.1.20.0040.00417.68
8.1.10.0050.00217.54
8.1.00.0000.00717.47
8.0.300.0030.00719.98
8.0.290.0070.00017.05
8.0.280.0000.00818.36
8.0.270.0070.00017.27
8.0.260.0000.00616.76
8.0.250.0000.00716.85
8.0.240.0050.00317.00
8.0.230.0040.00716.89
8.0.220.0030.00316.86
8.0.210.0000.00716.84
8.0.200.0000.00616.97
8.0.190.0030.00616.89
8.0.180.0030.00316.89
8.0.170.0000.00716.90
8.0.160.0000.00717.01
8.0.150.0030.00316.72
8.0.140.0040.00416.83
8.0.130.0030.00313.29
8.0.120.0000.00816.93
8.0.110.0000.00717.01
8.0.100.0000.00716.98
8.0.90.0000.00716.77
8.0.80.0120.00916.87
8.0.70.0000.00716.96
8.0.60.0000.00716.79
8.0.50.0040.00416.72
8.0.30.0150.00417.06
8.0.20.0120.00617.40
8.0.10.0040.00416.99
8.0.00.0090.00716.82
7.4.330.0000.00516.79
7.4.320.0070.00016.50
7.4.300.0000.00616.65
7.4.290.0030.00316.65
7.4.280.0030.00316.61
7.4.270.0030.00316.56
7.4.260.0000.00513.32
7.4.250.0000.00716.50
7.4.240.0040.00416.53
7.4.230.0040.00416.29
7.4.220.0090.00616.57
7.4.210.0090.00616.51
7.4.200.0030.00316.29
7.4.190.0000.00716.40
7.4.160.0150.00416.48
7.4.150.0100.01317.40
7.4.140.0100.01017.86
7.4.130.0090.01016.37
7.4.120.0090.01016.40
7.4.110.0070.01016.49
7.4.100.0190.00416.50
7.4.90.0130.00616.51
7.4.80.0030.01319.39
7.4.70.0090.00616.33
7.4.60.0030.01316.54
7.4.50.0060.00316.54
7.4.40.0060.00622.77
7.4.30.0080.00816.27
7.4.00.0050.00814.97
7.3.330.0030.00313.18
7.3.320.0060.00013.11
7.3.310.0000.00716.34
7.3.300.0050.00216.24
7.3.290.0150.00016.29
7.3.280.0080.00916.29
7.3.270.0180.00717.40
7.3.260.0030.01518.24
7.3.250.0130.00716.31
7.3.240.0150.00616.32
7.3.230.0120.00616.39
7.3.210.0090.00916.38
7.3.200.0110.01119.39
7.3.190.0070.01616.50
7.3.180.0100.00616.32
7.3.170.0080.01416.49
7.3.160.0120.00616.51
7.3.120.0020.01715.00
7.3.110.0110.00814.46
7.3.100.0060.01314.89
7.3.90.0070.01014.50
7.3.80.0110.00415.14
7.3.70.0030.00614.77
7.3.60.0070.00714.82
7.3.50.0070.00714.74
7.3.40.0080.00414.81
7.3.30.0030.01014.84
7.3.20.0070.01016.46
7.3.10.0100.00516.57
7.3.00.0070.00716.67
7.2.330.0070.01116.66
7.2.320.0110.00616.32
7.2.310.0130.00516.59
7.2.300.0080.00816.81
7.2.290.0090.00916.67
7.2.250.0100.01015.11
7.2.240.0070.01114.92
7.2.230.0000.01515.22
7.2.220.0080.00815.01
7.2.210.0100.00615.00
7.2.200.0000.01114.86
7.2.190.0040.01414.98
7.2.180.0000.01514.80
7.2.170.0000.01215.05
7.2.130.0060.00616.84
7.2.120.0070.01017.04
7.2.110.0030.00716.92
7.2.100.0060.01016.69
7.2.90.0070.01117.07
7.2.80.0110.00516.99
7.2.70.0100.00717.02
7.2.60.0130.00316.97
7.2.50.0100.00716.79
7.2.40.0050.00517.03
7.2.30.0090.00616.81
7.2.20.0120.00316.65
7.2.10.0000.01416.93
7.2.00.0030.01116.78
7.1.330.0130.00315.82
7.1.320.0060.01015.64
7.1.310.0070.01115.89
7.1.300.0070.01015.69
7.1.290.0040.00815.81
7.1.280.0030.00615.88
7.1.270.0070.00715.73
7.1.260.0060.00615.84
7.1.250.0050.00315.70
7.1.100.0030.00518.01
7.1.70.0000.00717.10
7.1.60.0100.01319.17
7.1.50.0050.00517.07
7.1.00.0000.03722.43
7.0.200.0030.00616.76
7.0.140.0070.07022.11
7.0.100.0000.05020.01
7.0.90.0000.05019.98
7.0.80.0070.05020.12
7.0.70.0230.06019.95
7.0.60.0070.07019.83
7.0.50.0100.08720.35
7.0.40.0070.06320.07
7.0.30.0030.07720.09
7.0.20.0030.09020.14
7.0.10.0070.06720.09
7.0.00.0000.07320.09
5.6.280.0100.06721.02
5.6.250.0100.05720.76
5.6.240.0300.03720.76
5.6.230.0070.04020.59
5.6.220.0030.04320.63
5.6.210.0000.09720.66
5.6.200.0200.03721.03
5.6.190.0170.03720.96
5.6.180.0030.06321.00
5.6.170.0000.04321.08
5.6.160.0030.08020.93
5.6.150.0030.06721.07
5.6.140.0100.04720.93
5.6.130.0130.08021.15
5.6.120.0070.08321.02
5.6.110.0130.03720.99
5.6.100.0070.08721.00
5.6.90.0030.07320.93
5.6.80.0100.04720.49
5.6.70.0130.07020.33
5.6.60.0030.04020.41
5.6.50.0030.07320.55
5.6.40.0030.04020.46
5.6.30.0000.08720.40
5.6.20.0030.07020.28
5.6.10.0300.05320.42
5.6.00.0030.04320.40
5.5.380.0070.08320.36
5.5.370.0170.07020.51
5.5.360.0070.04020.55
5.5.350.0170.04720.47
5.5.340.0100.06720.89
5.5.330.0100.07720.73
5.5.320.0100.05720.75
5.5.310.0100.07020.79
5.5.300.0030.04020.72
5.5.290.0030.07720.89
5.5.280.0070.06720.88
5.5.270.0030.09020.72
5.5.260.0100.06720.82
5.5.250.0030.04320.66
5.5.240.0130.06320.14
5.5.230.0100.03320.21
5.5.220.0100.07020.23
5.5.210.0130.03320.27
5.5.200.0070.07720.14
5.5.190.0130.07320.11
5.5.180.0130.06720.13
5.5.160.0070.04020.27
5.5.150.0000.07320.18
5.5.140.0100.06019.98
5.5.130.0030.08320.16
5.5.120.0130.06020.18
5.5.110.0200.06320.11
5.5.100.0030.06720.13
5.5.90.0100.03320.07
5.5.80.0070.06720.07
5.5.70.0030.07720.05
5.5.60.0100.03320.03
5.5.50.0100.07720.11
5.5.40.0130.07019.96
5.5.30.0070.04320.09
5.5.20.0070.07319.93
5.5.10.0070.07319.96
5.5.00.0070.07719.95
5.4.450.0000.07719.14
5.4.440.0070.08319.22
5.4.430.0030.07719.35
5.4.420.0130.07319.46
5.4.410.0000.04019.34
5.4.400.0070.05319.13
5.4.390.0030.04319.00
5.4.380.0070.04019.12
5.4.370.0070.04319.10
5.4.360.0000.04019.11
5.4.350.0170.04719.23
5.4.340.0070.07719.11
5.4.320.0070.04018.96
5.4.310.0170.06319.09
5.4.300.0100.07319.12
5.4.290.0030.06318.96
5.4.280.0070.07018.96
5.4.270.0070.03019.23
5.4.260.0000.04018.94
5.4.250.0100.07719.09
5.4.240.0070.05718.97
5.4.230.0000.08319.05
5.4.220.0030.08318.92
5.4.210.0130.06719.24
5.4.200.0000.07718.97
5.4.190.0100.06718.77
5.4.180.0070.07019.04
5.4.170.0030.08019.02
5.4.160.0030.05319.07
5.4.150.0130.07018.77
5.4.140.0100.07016.30
5.4.130.0100.04316.33
5.4.120.0030.03716.21
5.4.110.0070.03316.30
5.4.100.0070.03316.38
5.4.90.0030.03716.33
5.4.80.0070.03316.47
5.4.70.0030.03716.30
5.4.60.0030.03316.21
5.4.50.0030.03716.23
5.4.40.0070.02716.39
5.4.30.0070.02716.35
5.4.20.0030.03316.32
5.4.10.0070.03316.18
5.4.00.0030.03715.75
5.3.290.0100.07014.65
5.3.280.0030.08014.60
5.3.270.0070.04014.46
5.3.260.0030.04314.60
5.3.250.0170.06714.54
5.3.240.0100.03314.56
5.3.230.0000.04314.52
5.3.220.0000.04314.56
5.3.210.0030.03714.53
5.3.200.0000.04014.55
5.3.190.0100.03314.51
5.3.180.0170.03314.54
5.3.170.0000.04014.55
5.3.160.0070.04014.42
5.3.150.0030.03014.57
5.3.140.0030.03014.54
5.3.130.0000.04014.53
5.3.120.0070.03314.46
5.3.110.0000.03714.50
5.3.100.0000.04013.89
5.3.90.0030.03713.85
5.3.80.0030.04014.02
5.3.70.0030.03313.96
5.3.60.0130.04013.94
5.3.50.0100.03313.94
5.3.40.0100.06013.70
5.3.30.0000.04013.90
5.3.20.0000.03713.45
5.3.10.0030.03713.64
5.3.00.0100.03013.41
5.2.170.0000.02711.61
5.2.160.0070.02011.61
5.2.150.0030.03311.61
5.2.140.0030.02311.61
5.2.130.0030.03011.61
5.2.120.0000.03011.61
5.2.110.0000.03311.61
5.2.100.0030.02711.61
5.2.90.0030.03011.61
5.2.80.0030.03011.61
5.2.70.0000.03011.61
5.2.60.0070.02311.61
5.2.50.0030.03011.61
5.2.40.0030.02711.61
5.2.30.0030.03011.61
5.2.20.0030.02711.61
5.2.10.0030.02711.61
5.2.00.0070.02711.61
5.1.60.0000.02711.61
5.1.50.0070.03011.61
5.1.40.0030.02311.61
5.1.30.0000.02711.61
5.1.20.0030.02311.61
5.1.10.0030.02311.61
5.1.00.0000.02311.61
5.0.50.0000.02011.61
5.0.40.0000.02011.61
5.0.30.0030.02311.61
5.0.20.0030.03311.61
5.0.10.0000.01711.61
5.0.00.0030.02311.61
4.4.90.0000.01711.61
4.4.80.0030.01711.61
4.4.70.0000.01711.61
4.4.60.0030.01311.61
4.4.50.0000.01711.61
4.4.40.0030.02011.61
4.4.30.0070.01011.61
4.4.20.0030.01311.61
4.4.10.0000.01711.61
4.4.00.0070.02011.61
4.3.110.0000.01711.61
4.3.100.0000.01711.61
4.3.90.0030.01011.61
4.3.80.0000.02311.61
4.3.70.0000.01711.61
4.3.60.0000.01711.61
4.3.50.0030.01011.61
4.3.40.0000.02311.61
4.3.30.0000.01711.61
4.3.20.0000.01711.61
4.3.10.0000.02711.61
4.3.00.0030.02011.61

preferences:
55.91 ms | 401 KiB | 5 Q