3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array('leg1'=>'LA', 'leg2'=>'NY', 'leg3'=>'NY', 'leg4'=>'NY', 'leg5'=>'FL'); while($current = current($a)) { echo $current . "... "; $next = next($a); $nextnext = next($a); if($next == $current && $nextnext == $current){ echo "matches the next two values!\n"; } else { echo "does NOT match the next two values\n"; } prev($a); }

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.0040.01116.63
8.3.50.0080.00822.11
8.3.40.0110.00318.75
8.3.30.0050.00819.13
8.3.20.0000.00720.25
8.3.10.0040.00423.54
8.3.00.0000.00819.80
8.2.180.0120.00916.32
8.2.170.0000.01422.96
8.2.160.0060.00920.47
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0030.00619.77
8.2.110.0040.00821.06
8.2.100.0000.01217.72
8.2.90.0000.00919.27
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0040.00420.07
8.2.30.0050.00518.11
8.2.20.0040.00417.60
8.2.10.0040.00418.05
8.2.00.0000.00717.78
8.1.280.0110.00425.92
8.1.270.0070.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00623.89
8.1.230.0110.00020.85
8.1.220.0040.00417.79
8.1.210.0030.00618.77
8.1.200.0080.00017.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0080.00018.63
8.1.160.0060.00321.99
8.1.150.0050.00218.80
8.1.140.0040.00417.38
8.1.130.0070.00018.80
8.1.120.0000.00717.39
8.1.110.0030.00517.42
8.1.100.0040.00417.43
8.1.90.0000.00717.51
8.1.80.0000.00717.46
8.1.70.0020.00618.89
8.1.60.0040.00417.55
8.1.50.0030.00617.41
8.1.40.0060.00317.45
8.1.30.0000.00817.52
8.1.20.0050.00317.48
8.1.10.0030.00617.39
8.1.00.0000.00717.50
8.0.300.0090.00019.60
8.0.290.0000.00716.75
8.0.280.0070.00018.29
8.0.270.0050.00216.79
8.0.260.0030.00318.43
8.0.250.0040.00416.83
8.0.240.0000.00716.92
8.0.230.0030.00316.93
8.0.220.0060.00016.89
8.0.210.0030.00316.87
8.0.200.0030.00316.93
8.0.190.0070.00016.98
8.0.180.0050.00216.94
8.0.170.0100.00016.82
8.0.160.0050.00216.94
8.0.150.0030.00516.83
8.0.140.0070.00016.75
8.0.130.0000.00513.32
8.0.120.0040.00416.74
8.0.110.0000.00716.93
8.0.100.0000.00716.83
8.0.90.0050.00316.95
8.0.80.0070.01416.88
8.0.70.0050.00216.82
8.0.60.0000.00716.95
8.0.50.0040.00416.77
8.0.30.0130.00617.19
8.0.20.0080.01017.40
8.0.10.0080.01116.98
8.0.00.0110.00716.90
7.4.330.0050.00015.20
7.4.320.0030.00316.60
7.4.300.0060.00016.42
7.4.290.0000.00716.54
7.4.280.0040.00416.38
7.4.270.0080.00016.56
7.4.260.0030.00316.38
7.4.250.0040.00416.54
7.4.240.0020.00516.60
7.4.230.0030.00316.41
7.4.220.0140.00316.41
7.4.210.0070.01316.61
7.4.200.0050.00216.61
7.4.160.0050.01016.51
7.4.150.0090.01016.92
7.4.140.0110.00917.17
7.4.130.0100.00816.44
7.4.120.0120.00716.55
7.4.110.0090.00916.36
7.4.100.0090.01016.49
7.4.90.0100.00716.53
7.4.80.0100.01016.48
7.4.70.0140.00716.38
7.4.60.0130.00716.41
7.4.50.0130.00816.38
7.4.40.0130.00916.45
7.4.30.0120.01016.35
7.4.20.0120.00916.31
7.4.10.0130.00716.35
7.4.00.0070.01116.16
7.3.330.0000.00512.93
7.3.320.0000.00513.13
7.3.310.0040.00416.10
7.3.300.0030.00316.02
7.3.290.0030.01016.25
7.3.280.0090.00816.16
7.3.270.0130.00516.84
7.3.260.0090.00916.28
7.3.250.0110.00716.35
7.3.240.0060.01116.31
7.3.230.0080.01116.25
7.3.220.0100.00716.35
7.3.210.0110.00816.34
7.3.200.0080.01116.99
7.3.190.0180.00416.34
7.3.180.0120.01016.33
7.3.170.0100.01216.31
7.3.160.0140.00816.27
7.3.150.0100.01016.23
7.3.140.0120.00916.31
7.3.130.0160.00716.34
7.3.120.0110.00916.10
7.3.110.0140.00816.10
7.3.100.0090.01115.98
7.3.90.0120.00816.11
7.3.80.0130.00715.97
7.3.70.0110.00815.94
7.3.60.0090.01015.83
7.3.50.0100.00815.89
7.3.40.0060.01115.92
7.3.30.0100.00815.84
7.3.20.0130.00915.94
7.3.10.0110.00815.91
7.3.00.0130.00815.95
7.2.340.0200.00816.45
7.2.330.0160.00716.51
7.2.320.0120.01516.56
7.2.310.0130.01116.56
7.2.300.0170.01116.52
7.2.290.0170.01116.52
7.2.280.0130.01116.61
7.2.270.0140.01116.54
7.2.260.0140.01016.64
7.2.250.0160.00816.46
7.2.240.0130.01116.41
7.2.230.0160.00816.34
7.2.220.0150.01016.39
7.2.210.0150.00916.20
7.2.200.0130.01016.22
7.2.190.0150.00916.20
7.2.180.0110.01016.14
7.2.170.0140.00716.19
7.2.160.0130.00916.19
7.2.150.0140.00816.26
7.2.140.0170.00816.21
7.2.130.0150.00816.26
7.2.120.0160.00916.22
7.2.110.0330.00816.24
7.2.100.0150.01116.25
7.2.90.0140.00916.25
7.2.80.0120.01016.29
7.2.70.0140.00816.16
7.2.60.0290.00616.09
7.2.50.0310.00816.04
7.2.40.0330.01016.15
7.2.30.0290.01016.19
7.2.20.0280.00816.09
7.2.10.0260.01116.12
7.2.00.0340.01216.12
7.1.330.0220.00815.33
7.1.320.0190.00915.33
7.1.310.0180.01115.19
7.1.300.0180.00815.08
7.1.290.0230.00815.12
7.1.280.0190.00715.09
7.1.270.0170.00915.20
7.1.260.0190.00815.13
7.1.250.0180.00815.08
7.1.240.0170.00915.12
7.1.230.0190.01015.08
7.1.220.0210.00915.05
7.1.210.0230.00915.09
7.1.200.0190.00715.14
7.1.190.0220.00715.05
7.1.180.0150.01115.03
7.1.170.0380.00914.92
7.1.160.0340.01015.25
7.1.150.0350.01015.27
7.1.140.0310.00815.25
7.1.130.0340.00815.30
7.1.120.0370.00815.30
7.1.110.0430.00815.22
7.1.100.0390.00715.19
7.1.90.0300.00915.49
7.1.80.0330.00815.45
7.1.70.0280.00815.47
7.1.60.0300.00918.42
7.1.50.0300.01018.41
7.1.40.0270.01118.29
7.1.30.0310.00818.29
7.1.20.0300.01018.37
7.1.10.0250.00815.35
7.1.00.0230.00915.36
7.0.330.0200.01014.74
7.0.320.0180.00914.73
7.0.310.0200.00614.86
7.0.300.0360.01114.64
7.0.290.0430.00714.92
7.0.280.0210.01014.87
7.0.270.0370.00815.01
7.0.260.0350.01015.02
7.0.250.0440.01014.97
7.0.240.0380.00815.02
7.0.230.0340.00815.26
7.0.220.0360.00915.21
7.0.210.0270.01115.02
7.0.200.0290.01015.18
7.0.190.0390.00815.10
7.0.180.0270.00915.01
7.0.170.0290.00915.08
7.0.160.0310.00815.06
7.0.150.0300.00715.03
7.0.140.0250.00815.12
7.0.130.0240.01015.05
7.0.120.0250.00715.03
7.0.110.0280.00715.06
7.0.100.0230.00715.06
7.0.90.0220.00715.07
7.0.80.0320.00615.05
7.0.70.0240.00815.07
7.0.60.0210.00915.02
7.0.50.0190.00815.12
7.0.40.0230.00815.02
7.0.30.0220.00714.96
7.0.20.0220.00814.96
7.0.10.0260.00915.00
7.0.00.0240.00814.97
5.6.400.0180.01115.54
5.6.390.0210.00715.62
5.6.380.0210.00815.61
5.6.370.0180.00815.55
5.6.360.0160.01215.48
5.6.350.0190.00915.57
5.6.340.0210.00815.54
5.6.330.0170.01115.65
5.6.320.0180.01215.64
5.6.310.0200.00815.60
5.6.300.0160.02516.87
5.6.290.0150.02516.82
5.6.280.0150.02116.91
5.6.270.0150.02316.88
5.6.260.0130.02316.84
5.6.250.0170.02116.83
5.6.240.0160.02316.88
5.6.230.0170.01916.85
5.6.220.0150.02016.82
5.6.210.0170.02016.81
5.6.200.0170.01916.88
5.6.190.0160.02116.87
5.6.180.0170.02016.87
5.6.170.0180.02016.88
5.6.160.0160.02116.83
5.6.150.0150.02216.81
5.6.140.0160.02016.91
5.6.130.0150.02016.83
5.6.120.0150.02216.85
5.6.110.0160.02116.82
5.6.100.0140.02216.79
5.6.90.0150.02216.86
5.6.80.0160.02016.62
5.6.70.0140.02116.67
5.6.60.0160.02116.61
5.6.50.0170.02116.68
5.6.40.0180.01816.60
5.6.30.0130.02316.68
5.6.20.0140.02116.63
5.6.10.0140.02116.60
5.6.00.0150.02016.59
5.5.380.0160.02116.01
5.5.370.0140.02215.96
5.5.360.0150.02015.96
5.5.350.0140.02016.00
5.5.340.0180.02016.04
5.5.330.0150.02516.09
5.5.320.0150.02216.08
5.5.310.0170.02216.08
5.5.300.0150.02216.06
5.5.290.0160.02116.11
5.5.280.0160.02016.04
5.5.270.0170.01816.06
5.5.260.0150.02116.05
5.5.250.0150.02115.94
5.5.240.0170.01915.88
5.5.230.0150.02115.84
5.5.220.0160.02115.92
5.5.210.0150.02115.92
5.5.200.0160.02015.86
5.5.190.0150.02115.86
5.5.180.0150.02215.92
5.5.170.0180.01015.38
5.5.160.0170.01815.89
5.5.150.0160.02115.85
5.5.140.0170.01815.94
5.5.130.0160.02015.96
5.5.120.0160.02115.92
5.5.110.0170.02015.86
5.5.100.0160.02115.83
5.5.90.0160.01915.84
5.5.80.0140.02115.84
5.5.70.0160.02015.87
5.5.60.0150.02115.77
5.5.50.0150.02015.81
5.5.40.0130.02215.78
5.5.30.0150.02315.76
5.5.20.0150.02315.95
5.5.10.0150.02015.75
5.5.00.0160.02115.87
5.4.450.0130.01914.26
5.4.440.0120.01914.23
5.4.430.0120.01814.23
5.4.420.0140.01914.27
5.4.410.0120.02014.21
5.4.400.0120.01914.11
5.4.390.0170.01714.19
5.4.380.0150.01814.06
5.4.370.0140.01914.12
5.4.360.0140.01714.16
5.4.350.0140.01614.12
5.4.340.0130.02014.14
5.4.330.0170.00512.53
5.4.320.0110.01914.10
5.4.310.0140.01714.15
5.4.300.0130.01714.13
5.4.290.0150.01814.17
5.4.280.0140.02014.12
5.4.270.0120.01914.13
5.4.260.0130.01714.17
5.4.250.0160.01614.14
5.4.240.0150.01514.12
5.4.230.0130.02014.10
5.4.220.0140.02014.16
5.4.210.0150.01714.11
5.4.200.0130.01914.13
5.4.190.0160.01814.21
5.4.180.0140.01614.12
5.4.170.0140.01814.11
5.4.160.0120.01914.10
5.4.150.0130.01814.06
5.4.140.0120.01813.48
5.4.130.0100.01813.52
5.4.120.0150.01513.51
5.4.110.0130.01613.52
5.4.100.0120.01713.52
5.4.90.0110.01713.52
5.4.80.0130.01613.52
5.4.70.0130.01613.51
5.4.60.0120.01613.51
5.4.50.0140.01613.45
5.4.40.0110.01813.53
5.4.30.0120.01813.56
5.4.20.0130.01813.56
5.4.10.0120.01713.55
5.4.00.0100.01913.36
5.3.290.0140.01813.34
5.3.280.0120.01713.24
5.3.270.0140.01713.27
5.3.260.0110.02013.28
5.3.250.0130.01713.30
5.3.240.0110.01913.20
5.3.230.0120.02213.26
5.3.220.0100.01813.19
5.3.210.0130.01713.18
5.3.200.0140.01713.22
5.3.190.0110.01813.21
5.3.180.0150.01513.23
5.3.170.0120.01813.28
5.3.160.0130.01713.24
5.3.150.0120.01713.25
5.3.140.0120.01813.21
5.3.130.0120.01913.24
5.3.120.0110.01813.21
5.3.110.0140.01813.26
5.3.100.0110.01913.17
5.3.90.0120.01713.13
5.3.80.0100.01813.10
5.3.70.0120.01713.09
5.3.60.0130.01613.18
5.3.50.0110.01713.09
5.3.40.0150.02013.11
5.3.30.0120.01813.15
5.3.20.0120.01713.11
5.3.10.0120.01613.00
5.3.00.0110.01812.99
5.2.170.0090.00914.09
5.2.160.0080.01014.09
5.2.150.0180.01814.09
5.2.140.0100.00714.09
5.2.130.0110.00814.09
5.2.120.0060.01314.09
5.2.110.0140.00614.09
5.2.100.0090.00914.09
5.2.90.0190.01214.09
5.2.80.0140.00614.09
5.2.70.0070.01014.09
5.2.60.0100.00714.09
5.2.50.0130.01914.09
5.2.40.0090.00614.09
5.2.30.0110.00514.09
5.2.20.0030.01414.09
5.2.10.0080.00814.09
5.2.00.0100.00514.09
5.1.60.0100.00514.09
5.1.50.0080.00814.09
5.1.40.0120.00214.09
5.1.30.0130.00314.09
5.1.20.0100.00514.09
5.1.10.0070.00714.09
5.1.00.0120.00214.09
5.0.50.0060.00614.09
5.0.40.0060.00614.09
5.0.30.0110.00414.09
5.0.20.0120.00314.09
5.0.10.0100.00314.09
5.0.00.0080.00514.09
4.4.90.0100.00014.09
4.4.80.0040.00414.09
4.4.70.0070.00014.09
4.4.60.0070.00014.09
4.4.50.0040.00414.09
4.4.40.0040.00414.09
4.4.30.0020.00514.09
4.4.20.0170.00214.09
4.4.10.0000.00814.09
4.4.00.0080.00014.09
4.3.110.0050.00214.09
4.3.100.0040.00414.09
4.3.90.0090.00314.09
4.3.80.0030.00614.09
4.3.70.0080.00014.09
4.3.60.0000.00814.09
4.3.50.0070.00014.09
4.3.40.0080.00014.09
4.3.30.0040.00214.09
4.3.20.0000.00714.09
4.3.10.0050.00214.09
4.3.00.0030.00314.09

preferences:
42.41 ms | 401 KiB | 5 Q