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.40.0170.00018.70
8.3.30.0110.00418.79
8.3.20.0000.00820.26
8.3.10.0000.00721.73
8.3.00.0000.00820.77
8.2.170.0070.01022.96
8.2.160.0070.00719.29
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0050.00319.54
8.2.110.0100.00019.27
8.2.100.0060.00617.75
8.2.90.0080.00019.01
8.2.80.0040.00417.97
8.2.70.0030.00617.48
8.2.60.0080.00018.03
8.2.50.0040.00418.07
8.2.40.0060.00618.12
8.2.30.0030.00618.04
8.2.20.0040.00417.79
8.2.10.0020.00517.96
8.2.00.0040.00417.69
8.1.270.0080.00020.69
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0090.00023.83
8.1.230.0080.00318.72
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0040.00420.30
8.1.160.0040.00421.93
8.1.150.0000.00718.80
8.1.140.0000.00717.39
8.1.130.0030.00317.69
8.1.120.0040.00417.49
8.1.110.0040.00417.48
8.1.100.0000.00717.41
8.1.90.0000.00717.36
8.1.80.0030.00517.49
8.1.70.0070.00017.46
8.1.60.0090.00017.46
8.1.50.0070.00017.56
8.1.40.0040.00417.54
8.1.30.0030.00517.66
8.1.20.0070.00017.67
8.1.10.0040.00417.40
8.1.00.0090.00017.27
8.0.300.0070.00018.77
8.0.290.0050.00516.75
8.0.280.0030.00318.34
8.0.270.0000.00817.26
8.0.260.0000.00617.25
8.0.250.0040.00416.90
8.0.240.0040.00416.90
8.0.230.0070.00016.86
8.0.220.0030.00316.86
8.0.210.0000.00716.81
8.0.200.0040.00416.97
8.0.190.0090.00016.93
8.0.180.0030.00616.93
8.0.170.0060.00316.96
8.0.160.0000.00816.93
8.0.150.0040.00416.80
8.0.140.0040.00416.82
8.0.130.0000.00613.41
8.0.120.0040.00416.83
8.0.110.0040.00416.99
8.0.100.0050.00216.73
8.0.90.0050.00216.81
8.0.80.0080.00716.86
8.0.70.0000.00716.81
8.0.60.0000.00716.94
8.0.50.0040.00416.72
8.0.30.0100.01317.14
8.0.20.0190.00317.40
8.0.10.0030.00517.02
8.0.00.0130.00616.73
7.4.330.0050.00015.13
7.4.320.0070.00016.59
7.4.300.0030.00316.44
7.4.290.0060.00316.41
7.4.280.0020.00716.54
7.4.270.0000.00716.56
7.4.260.0030.00316.63
7.4.250.0000.00716.55
7.4.240.0030.00316.45
7.4.230.0070.00016.71
7.4.220.0090.00916.59
7.4.210.0080.00916.50
7.4.200.0040.00416.40
7.4.160.0070.01616.57
7.4.150.0230.03317.40
7.4.140.0140.00817.86
7.4.130.0070.00916.47
7.4.120.0110.00716.36
7.4.110.0040.01316.56
7.4.100.0150.00316.63
7.4.90.0120.00616.51
7.4.80.0160.00619.39
7.4.70.0110.00416.58
7.4.60.0090.00616.52
7.4.50.0000.00516.52
7.4.40.0130.00716.40
7.4.30.0160.00616.45
7.4.00.0040.00914.87
7.3.330.0030.00312.99
7.3.320.0080.00413.09
7.3.310.0060.00316.15
7.3.300.0030.00316.27
7.3.290.0030.00616.27
7.3.280.0100.00816.26
7.3.270.0070.01117.40
7.3.260.0130.00416.46
7.3.250.0070.01016.39
7.3.240.0120.00616.50
7.3.230.0100.00716.39
7.3.210.0060.01516.50
7.3.200.0070.01019.39
7.3.190.0080.00816.30
7.3.180.0120.00816.16
7.3.170.0060.01116.35
7.3.160.0030.01716.19
7.3.120.0090.00914.94
7.3.110.0040.01114.66
7.3.100.0060.00914.89
7.3.90.0030.00714.80
7.3.80.0070.00715.02
7.3.70.0030.01214.80
7.3.60.0000.00914.78
7.3.50.0030.01014.46
7.3.40.0100.00714.73
7.3.30.0030.01014.84
7.3.20.0060.00316.47
7.3.10.0100.00716.41
7.3.00.0090.00616.71
7.2.330.0100.00716.43
7.2.320.0060.01816.27
7.2.310.0130.00316.45
7.2.300.0030.01416.47
7.2.290.0100.01316.39
7.2.250.0100.00714.68
7.2.240.0000.01814.93
7.2.230.0090.00914.99
7.2.220.0030.00914.98
7.2.210.0050.00514.92
7.2.200.0070.00714.93
7.2.190.0060.01014.80
7.2.180.0060.01215.00
7.2.170.0100.00314.75
7.2.160.0050.00514.91
7.2.150.0040.01117.01
7.2.140.0040.01416.84
7.2.130.0070.01116.89
7.2.120.0060.01016.56
7.2.110.0090.00616.69
7.2.100.0060.00616.71
7.2.90.0050.00916.64
7.2.80.0020.01216.64
7.2.70.0060.00616.58
7.2.60.0030.00716.63
7.2.50.0060.00916.80
7.2.40.0110.00316.87
7.2.30.0030.01116.76
7.2.20.0100.00616.70
7.2.10.0050.00816.77
7.2.00.0070.00517.60
7.1.330.0040.01115.62
7.1.320.0040.00415.54
7.1.310.0090.00615.74
7.1.300.0060.00615.95
7.1.290.0040.01115.91
7.1.280.0100.00315.55
7.1.270.0070.00315.71
7.1.260.0090.00915.76
7.1.250.0130.00715.70
7.1.240.0030.01016.00
7.1.230.0030.01015.79
7.1.220.0100.00015.73
7.1.210.0060.00915.63
7.1.200.0070.00415.83
7.1.190.0070.00715.89
7.1.180.0140.00015.70
7.1.170.0040.00415.84
7.1.160.0100.00315.73
7.1.150.0060.00615.68
7.1.140.0060.00615.68
7.1.130.0060.00315.77
7.1.120.0060.00315.81
7.1.110.0070.00715.66
7.1.100.0030.00916.78
7.1.90.0000.01815.88
7.1.80.0030.01015.62
7.1.70.0050.00616.39
7.1.60.0070.01017.64
7.1.50.0110.01325.26
7.1.40.0070.00715.66
7.1.30.0050.00815.60
7.1.20.0060.00615.73
7.1.10.0090.00315.77
7.1.00.0040.04419.19
7.0.320.0070.00315.38
7.0.310.0090.00615.55
7.0.300.0040.01115.41
7.0.290.0030.01015.12
7.0.280.0100.00015.40
7.0.270.0070.00715.41
7.0.260.0070.00715.43
7.0.250.0070.00715.40
7.0.240.0060.00615.41
7.0.230.0060.00715.28
7.0.220.0040.00415.60
7.0.210.0120.00015.42
7.0.200.0380.00715.17
7.0.190.0140.00015.54
7.0.180.0090.00615.55
7.0.170.0000.01415.54
7.0.160.0000.01515.27
7.0.150.0030.01015.24
7.0.140.0090.03318.73
7.0.130.0060.00615.46
7.0.120.0040.00415.57
7.0.110.0050.00415.49
7.0.100.0030.01015.41
7.0.90.0080.00315.57
7.0.80.0030.01015.42
7.0.70.0000.01215.36
7.0.60.0080.04317.68
7.0.50.0020.04816.68
7.0.40.0110.03316.81
7.0.30.0100.02716.74
7.0.20.0180.04116.71
7.0.10.0070.02316.83
7.0.00.0080.02816.74
5.6.380.0090.00614.13
5.6.370.0120.00414.45
5.6.360.0130.00414.18
5.6.350.0090.00314.17
5.6.340.0110.00514.31
5.6.330.0130.00414.22
5.6.320.0150.00814.29
5.6.310.0130.00014.32
5.6.300.0140.00314.39
5.6.290.0070.00714.46
5.6.280.0080.04017.72
5.6.270.0130.00314.46
5.6.260.0090.00614.30
5.6.250.0120.00214.38
5.6.240.0120.00414.10
5.6.230.0100.00514.19
5.6.220.0130.00214.18
5.6.210.0050.04517.39
5.6.200.0090.04516.22
5.6.190.0080.02317.50
5.6.180.0300.03817.22
5.6.170.0210.03817.16
5.6.160.0080.02917.33
5.6.150.0140.03816.34
5.6.140.0110.02316.08
5.6.130.0060.04916.27
5.6.120.0130.04117.45
5.6.110.0140.03817.51
5.6.100.0050.04817.47
5.6.90.0130.03917.88
5.6.80.0110.02017.20
5.6.70.0090.00614.43
5.6.60.0070.01014.13
5.6.50.0110.00714.32
5.6.40.0120.00514.14
5.6.30.0140.00214.09
5.6.20.0140.00314.50
5.6.10.0130.00314.07
5.6.00.0040.01113.85
5.5.380.0030.00911.07
5.5.370.0140.00011.07
5.5.360.0080.00511.07
5.5.350.0110.05015.69
5.5.340.0050.02314.51
5.5.330.0090.03015.77
5.5.320.0090.02215.74
5.5.310.0210.03715.68
5.5.300.0080.02014.48
5.5.290.0020.02914.58
5.5.280.0090.03015.99
5.5.270.0070.02215.85
5.5.260.0120.04115.86
5.5.250.0030.02415.92
5.5.240.0050.04315.66
5.5.230.0050.00511.07
5.5.220.0090.00611.07
5.5.210.0090.00211.07
5.5.200.0140.00011.09
5.5.190.0070.00411.09
5.5.180.0040.00811.07
5.5.170.0110.00713.71
5.5.160.0080.00411.07
5.5.150.0070.00711.07
5.5.140.0090.00411.07
5.5.130.0080.00411.07
5.5.120.0040.00411.07
5.5.110.0120.00311.07
5.5.100.0110.00311.07
5.5.90.0070.00311.07
5.5.80.0090.00611.14
5.5.70.0070.00311.07
5.5.60.0090.00611.07
5.5.50.0110.00411.07
5.5.40.0130.00311.07
5.5.30.0060.00611.07
5.5.20.0090.00611.07
5.5.10.0110.00011.07
5.5.00.0000.00811.07
5.4.450.0440.02815.21
5.4.440.0350.02915.28
5.4.430.0070.03115.38
5.4.420.0050.03215.25
5.4.410.0060.03315.02
5.4.400.0130.02614.84
5.4.390.0110.02814.79
5.4.380.0170.02514.88
5.4.370.0090.03014.77
5.4.360.0130.02814.91
5.4.350.0150.02814.80
5.4.340.0070.03414.93
5.4.330.0120.00011.07
5.4.320.0120.03014.77
5.4.310.0150.03514.91
5.4.300.0100.02814.88
5.4.290.0170.02714.78
5.4.280.0120.03014.92
5.4.270.0200.02314.78
5.4.260.0120.02514.85
5.4.250.0140.02714.84
5.4.240.0140.02614.88
5.4.230.0100.03014.85
5.4.220.0170.02814.90
5.4.210.0120.02914.84
5.4.200.0100.03813.76
5.4.190.0130.02914.89
5.4.180.0100.03014.91
5.4.170.0110.03114.78
5.4.160.0060.03214.87
5.4.150.0130.02814.75
5.4.140.0110.03013.67
5.4.130.0160.02213.65
5.4.120.0140.02913.65
5.4.110.0150.02513.67
5.4.100.0130.02713.69
5.4.90.0100.02813.64
5.4.80.0080.03013.58
5.4.70.0100.02913.68
5.4.60.0120.02713.62
5.4.50.0120.03013.61
5.4.40.0110.03313.65
5.4.30.0140.02313.62
5.4.20.0150.02513.65
5.4.10.0090.02913.58
5.4.00.0120.02513.38
5.3.290.0110.03012.83
5.3.280.0080.03012.78
5.3.270.0110.03112.79
5.3.260.0130.02612.80
5.3.250.0160.02312.89
5.3.240.0110.02912.84
5.3.230.0080.03312.79
5.3.220.0160.02312.87
5.3.210.0090.02912.87
5.3.200.0060.03112.79
5.3.190.0120.02712.80
5.3.180.0110.02812.86
5.3.170.0130.02512.80
5.3.160.0140.02212.78
5.3.150.0120.02812.77
5.3.140.0140.02612.83
5.3.130.0110.02812.79
5.3.120.0110.03012.83
5.3.110.0130.03112.80
5.3.100.0140.02512.54
5.3.90.0120.02512.54
5.3.80.0120.02712.50
5.3.70.0100.02812.53
5.3.60.0080.03112.52
5.3.50.0160.02212.48
5.3.40.0150.02312.50
5.3.30.0120.02812.53
5.3.20.0100.02712.43
5.3.10.0150.02212.36
5.3.00.0100.02712.35
5.2.170.0110.02011.10
5.2.160.0080.02711.13
5.2.150.0030.02911.07
5.2.140.0120.02011.14
5.2.130.0100.02511.06
5.2.120.0070.02511.06
5.2.110.0070.02511.12
5.2.100.0130.01811.12
5.2.90.0070.02411.15
5.2.80.0080.02411.06
5.2.70.0130.01711.07
5.2.60.0090.02411.05
5.2.50.0130.02111.02
5.2.40.0030.02511.04
5.2.30.0120.01911.01
5.2.20.0080.02311.00
5.2.10.0140.01610.98
5.2.00.0070.02310.90
5.1.60.0080.01810.56
5.1.50.0110.01610.58
5.1.40.0110.01510.51
5.1.30.0080.02010.72
5.1.20.0100.01910.77
5.1.10.0100.01710.59
5.1.00.0120.01610.63
5.0.50.0050.0159.80
5.0.40.0070.0139.75
5.0.30.0040.0259.68
5.0.20.0070.0139.73
5.0.10.0050.0179.64
5.0.00.0080.0219.72
4.4.90.0050.0148.50
4.4.80.0020.0148.49
4.4.70.0030.0138.47
4.4.60.0060.0128.46
4.4.50.0060.0118.48
4.4.40.0080.0158.49
4.4.30.0080.0108.45
4.4.20.0020.0148.50
4.4.10.0070.0118.50
4.4.00.0040.0218.51
4.3.110.0030.0138.43
4.3.100.0010.0148.44
4.3.90.0050.0128.45
4.3.80.0040.0198.44
4.3.70.0040.0108.43
4.3.60.0060.0118.45
4.3.50.0040.0148.42
4.3.40.0030.0188.42
4.3.30.0060.0107.82
4.3.20.0030.0147.82
4.3.10.0050.0117.80
4.3.00.0100.0139.02

preferences:
80.53 ms | 400 KiB | 5 Q