3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'FL'); while($current = current($a)) { if(next($a) == $current && next($a) == $current){ //staying put for next two legs echo $current; } }

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.40.0110.00418.73
8.3.30.0030.01020.34
8.3.20.0050.00320.22
8.3.10.0070.00020.92
8.3.00.0090.00022.29
8.2.170.0080.00622.96
8.2.160.0070.00722.13
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0030.00526.16
8.2.120.0030.00520.63
8.2.110.0000.01022.11
8.2.100.0040.00818.03
8.2.90.0040.00418.03
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0040.00417.91
8.2.50.0030.00618.07
8.2.40.0080.00018.15
8.2.30.0040.00419.45
8.2.20.0040.00417.66
8.2.10.0050.00217.70
8.2.00.0000.00817.81
8.1.270.0000.00823.99
8.1.260.0070.01126.35
8.1.250.0080.00028.09
8.1.240.0140.00722.32
8.1.230.0040.00720.81
8.1.220.0050.00317.79
8.1.210.0080.00018.93
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00518.66
8.1.160.0030.00518.82
8.1.150.0050.00218.60
8.1.140.0050.00217.46
8.1.130.0070.00017.73
8.1.120.0000.00817.36
8.1.110.0050.00217.50
8.1.100.0000.00717.44
8.1.90.0000.00717.35
8.1.80.0050.00217.32
8.1.70.0000.00717.43
8.1.60.0030.00517.57
8.1.50.0040.00417.35
8.1.40.0040.00417.50
8.1.30.0040.00417.58
8.1.20.0000.00917.67
8.1.10.0000.00717.55
8.1.00.0040.00417.45
8.0.300.0080.00019.90
8.0.290.0000.00816.63
8.0.280.0000.00718.44
8.0.270.0000.00717.13
8.0.260.0050.00316.82
8.0.250.0030.00316.89
8.0.240.0040.00416.89
8.0.230.0070.00316.83
8.0.220.0000.00716.80
8.0.210.0000.00716.76
8.0.200.0000.00716.96
8.0.190.0030.00516.93
8.0.180.0080.00316.76
8.0.170.0040.00416.89
8.0.160.0030.00316.77
8.0.150.0070.00016.79
8.0.140.0030.00316.90
8.0.130.0000.00513.25
8.0.120.0040.00416.77
8.0.110.0040.00416.89
8.0.100.0000.00716.91
8.0.90.0070.00016.77
8.0.80.0130.00616.83
8.0.70.0040.00416.88
8.0.60.0070.00017.00
8.0.50.0000.00816.89
8.0.30.0150.00317.26
8.0.20.0100.00917.40
8.0.10.0000.00717.00
8.0.00.0080.01016.71
7.4.330.0060.00014.98
7.4.320.0030.00316.51
7.4.300.0030.00316.52
7.4.290.0030.00516.51
7.4.280.0000.00716.54
7.4.270.0030.00316.58
7.4.260.0030.00313.29
7.4.250.0040.00416.63
7.4.240.0040.00316.62
7.4.230.0000.00716.57
7.4.220.0090.00616.53
7.4.210.0080.00816.57
7.4.200.0030.00316.34
7.4.190.0030.00316.59
7.4.160.0140.00316.45
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0090.01016.38
7.4.120.0120.00716.47
7.4.110.0120.00416.43
7.4.100.0060.01216.30
7.4.90.0070.01016.41
7.4.80.0110.00716.37
7.4.70.0080.00816.60
7.4.60.0070.01016.46
7.4.50.0090.00016.64
7.4.40.0060.01122.77
7.4.30.0160.00616.39
7.4.10.0120.00615.04
7.4.00.0090.00915.07
7.3.330.0050.00013.04
7.3.320.0050.00013.09
7.3.310.0040.00416.05
7.3.300.0050.00216.10
7.3.290.0110.00416.26
7.3.280.0060.01316.19
7.3.270.0160.00317.40
7.3.260.0090.00918.24
7.3.250.0090.01116.42
7.3.240.0080.01116.45
7.3.230.0130.00316.50
7.3.210.0060.01716.38
7.3.200.0070.01019.39
7.3.190.0110.01116.42
7.3.180.0120.00416.23
7.3.170.0070.01016.57
7.3.160.0130.00916.10
7.3.130.0060.01114.76
7.3.120.0060.00914.87
7.3.110.0100.01014.70
7.3.100.0000.01114.82
7.3.90.0070.00714.46
7.3.80.0000.00814.59
7.3.70.0070.00314.80
7.3.60.0120.00614.71
7.3.50.0080.00814.69
7.3.40.0060.00314.78
7.3.30.0070.00714.46
7.3.20.0090.00616.54
7.3.10.0060.00816.52
7.3.00.0050.00816.55
7.2.330.0110.00616.39
7.2.320.0170.00616.45
7.2.310.0060.01616.43
7.2.300.0080.00816.50
7.2.290.0070.01116.61
7.2.260.0000.01814.96
7.2.250.0030.01314.60
7.2.240.0130.00015.11
7.2.230.0100.00314.93
7.2.220.0090.00615.00
7.2.210.0070.00714.85
7.2.200.0070.00715.10
7.2.190.0060.01014.80
7.2.180.0100.00314.95
7.2.170.0040.00714.88
7.2.160.0000.01514.59
7.2.150.0070.00416.73
7.2.140.0070.01116.91
7.2.130.0060.00916.71
7.2.120.0060.01016.81
7.2.110.0070.00516.86
7.2.100.0060.00916.82
7.2.90.0050.00916.70
7.2.80.0090.00816.72
7.2.70.0070.00916.85
7.2.60.0070.00816.83
7.2.50.0070.00816.72
7.2.40.0120.00316.71
7.2.30.0110.00516.97
7.2.20.0060.00816.65
7.2.10.0080.00616.66
7.2.00.0100.00617.19
7.1.330.0100.00315.68
7.1.320.0030.00915.66
7.1.310.0090.00315.48
7.1.300.0090.00915.63
7.1.290.0090.00015.66
7.1.280.0030.00715.72
7.1.270.0000.01215.70
7.1.260.0090.00615.65
7.1.250.0030.01215.64
7.1.240.0070.00915.61
7.1.230.0080.00515.87
7.1.220.0090.00715.51
7.1.210.0050.00715.72
7.1.200.0070.00715.73
7.1.190.0070.00815.76
7.1.180.0070.00315.77
7.1.170.0040.01015.88
7.1.160.0100.00515.74
7.1.150.0050.00915.65
7.1.140.0070.00715.54
7.1.130.0060.00815.78
7.1.120.0110.00715.74
7.1.110.0090.00615.72
7.1.100.0080.00516.39
7.1.90.0070.00515.47
7.1.80.0050.00815.53
7.1.70.0050.00716.06
7.1.60.0100.00916.97
7.1.50.0050.01216.07
7.1.40.0090.00515.51
7.1.30.0030.01215.58
7.1.20.0100.00315.52
7.1.10.0030.00815.63
7.1.00.0060.02117.83
7.0.330.0050.00815.25
7.0.320.0050.00615.49
7.0.310.0080.00715.46
7.0.300.0040.00915.41
7.0.290.0090.00715.17
7.0.280.0080.00315.46
7.0.270.0050.00615.37
7.0.260.0100.00215.40
7.0.250.0080.00715.33
7.0.240.0050.00915.38
7.0.230.0080.00615.46
7.0.220.0060.01015.39
7.0.210.0100.00615.34
7.0.200.0050.00815.90
7.0.190.0050.00815.41
7.0.180.0100.00215.40
7.0.170.0070.00515.15
7.0.160.0100.00515.16
7.0.150.0050.00915.45
7.0.140.0120.02417.71
7.0.130.0050.00715.37
7.0.120.0090.00415.44
7.0.110.0060.00715.33
7.0.100.0080.00615.44
7.0.90.0040.01115.31
7.0.80.0140.02716.86
7.0.70.0120.02716.97
7.0.60.0120.02716.83
7.0.50.0180.03016.96
7.0.40.0070.02015.67
7.0.30.0120.02915.50
7.0.20.0080.01715.66
7.0.10.0120.02815.66
7.0.00.0090.02915.68
5.6.400.0060.01014.50
5.6.390.0030.01214.37
5.6.380.0050.00913.96
5.6.370.0050.00914.46
5.6.360.0080.00714.43
5.6.350.0030.00714.40
5.6.340.0080.00514.45
5.6.330.0060.00714.40
5.6.320.0070.00514.25
5.6.310.0020.00914.17
5.6.300.0060.00714.22
5.6.290.0060.00514.07
5.6.280.0030.02716.35
5.6.270.0080.00414.30
5.6.260.0040.00914.31
5.6.250.0050.00914.40
5.6.240.0060.00614.24
5.6.230.0060.02616.23
5.6.220.0100.03016.35
5.6.210.0050.03616.42
5.6.200.0070.01616.50
5.6.190.0060.01816.45
5.6.180.0090.01816.43
5.6.170.0070.02916.46
5.6.160.0040.03316.40
5.6.150.0060.03416.39
5.6.140.0070.03016.46
5.6.130.0050.02216.49
5.6.120.0080.03016.55
5.6.110.0070.02916.41
5.6.100.0060.03116.50
5.6.90.0060.02116.40
5.6.80.0040.02716.21
5.6.70.0050.02616.29
5.6.60.0040.03516.15
5.6.50.0070.02716.14
5.6.40.0040.03216.15
5.6.30.0060.03216.19
5.6.20.0090.01516.14
5.6.10.0060.03216.30
5.6.00.0070.02816.22
5.5.380.0020.00912.50
5.5.370.0060.03115.36
5.5.360.0100.02715.26
5.5.350.0120.01815.31
5.5.340.0040.03115.38
5.5.330.0060.01515.43
5.5.320.0090.03115.30
5.5.310.0060.01915.46
5.5.300.0050.02215.43
5.5.290.0080.02515.33
5.5.280.0080.02915.40
5.5.270.0050.03015.42
5.5.260.0070.03315.47
5.5.250.0090.02415.38
5.5.240.0070.02415.13
5.5.230.0070.03015.12
5.5.220.0030.02415.16
5.5.210.0070.02815.19
5.5.200.0050.02815.15
5.5.190.0050.03015.22
5.5.180.0060.03115.06
5.5.170.0070.00512.68
5.5.160.0050.03015.15
5.5.150.0060.02215.22
5.5.140.0060.02715.19
5.5.130.0070.02715.09
5.5.120.0070.02915.14
5.5.110.0070.02115.14
5.5.100.0070.01415.21
5.5.90.0070.02915.07
5.5.80.0060.01815.13
5.5.70.0070.02715.15
5.5.60.0020.03115.12
5.5.50.0110.02715.09
5.5.40.0060.02115.00
5.5.30.0110.02415.03
5.5.20.0090.01815.09
5.5.10.0090.02215.15
5.5.00.0080.02315.06
5.4.450.0050.01914.22
5.4.440.0090.02914.12
5.4.430.0070.02214.17
5.4.420.0080.01714.21
5.4.410.0040.03014.21
5.4.400.0110.01914.05
5.4.390.0030.03014.11
5.4.380.0040.03014.07
5.4.370.0030.02014.08
5.4.360.0070.02714.11
5.4.350.0050.02414.11
5.4.340.0060.01514.15
5.4.330.0050.00511.61
5.4.320.0050.02914.11
5.4.310.0090.01314.04
5.4.300.0060.02714.01
5.4.290.0070.02714.05
5.4.280.0050.02914.12
5.4.270.0030.01914.10
5.4.260.0080.02814.07
5.4.250.0080.02714.05
5.4.240.0040.01714.00
5.4.230.0050.02714.06
5.4.220.0030.03313.99
5.4.210.0070.02214.04
5.4.200.0070.02714.11
5.4.190.0070.01414.11
5.4.180.0080.02814.09
5.4.170.0040.02614.11
5.4.160.0090.02414.04
5.4.150.0040.02614.08
5.4.140.0030.02413.18
5.4.130.0030.01713.17
5.4.120.0050.01613.19
5.4.110.0020.02213.16
5.4.100.0050.01913.17
5.4.90.0030.01613.14
5.4.80.0030.01913.18
5.4.70.0030.01713.20
5.4.60.0040.01713.21
5.4.50.0010.01713.18
5.4.40.0050.01113.17
5.4.30.0010.01913.13
5.4.20.0050.01613.21
5.4.10.0050.02813.18
5.4.00.0040.01412.98
5.3.290.0010.03312.61
5.3.280.0060.02712.55
5.3.270.0040.02912.59
5.3.260.0070.02712.59
5.3.250.0050.01712.61
5.3.240.0070.02212.56
5.3.230.0030.01612.60
5.3.220.0020.01812.55
5.3.210.0040.01612.54
5.3.200.0030.01512.54
5.3.190.0000.01912.59
5.3.180.0020.01712.58
5.3.170.0030.01512.56
5.3.160.0080.01912.58
5.3.150.0040.02112.54
5.3.140.0060.02312.56
5.3.130.0030.01512.54
5.3.120.0030.01512.58
5.3.110.0050.01212.58
5.3.100.0060.02112.41
5.3.90.0010.02912.36
5.3.80.0070.01212.36
5.3.70.0040.01512.41
5.3.60.0060.01412.38
5.3.50.0050.01512.31
5.3.40.0020.01712.37
5.3.30.0050.01612.34
5.3.20.0040.01612.30
5.3.10.0060.01312.28
5.3.00.0040.01512.28
5.2.170.0040.02112.36
5.2.160.0060.01512.36
5.2.150.0030.01512.36
5.2.140.0030.01912.36
5.2.130.0000.01912.36
5.2.120.0030.01712.36
5.2.110.0060.01312.36
5.2.100.0030.01712.36
5.2.90.0020.01712.36
5.2.80.0050.01512.36
5.2.70.0020.01912.36
5.2.60.0030.01712.36
5.2.50.0040.01812.36
5.2.40.0050.01212.36
5.2.30.0050.01512.36
5.2.20.0030.01312.36
5.2.10.0020.01712.36
5.2.00.0070.01712.36
5.1.60.0020.01312.36
5.1.50.0020.01512.36
5.1.40.0070.01312.36
5.1.30.0000.01712.36
5.1.20.0030.01712.36
5.1.10.0040.01412.36
5.1.00.0040.02412.36
5.0.50.0020.02212.36
5.0.40.0030.01012.36
5.0.30.0020.01812.36
5.0.20.0080.00712.36
5.0.10.0060.00812.36
5.0.00.0040.01712.36
4.4.90.0000.01112.36
4.4.80.0010.01012.36
4.4.70.0020.01012.36
4.4.60.0020.00912.36
4.4.50.0020.01012.36
4.4.40.0020.01112.36
4.4.30.0020.01012.36
4.4.20.0000.00912.36
4.4.10.0000.01712.36
4.4.00.0010.01312.36
4.3.110.0020.00812.36
4.3.100.0000.01112.36
4.3.90.0020.01012.36
4.3.80.0020.01312.36
4.3.70.0020.00912.36
4.3.60.0020.01012.36
4.3.50.0030.00712.36
4.3.40.0020.01212.36
4.3.30.0020.01012.36
4.3.20.0010.01712.36
4.3.10.0020.00812.36
4.3.00.0020.00912.36

preferences:
43.43 ms | 400 KiB | 5 Q