3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'leg1'=>'1', 'leg2'=>'2', 'leg3'=>'3', 'leg4'=>'4', 'leg5'=>'5'); while($current = current($a)) { echo $current . "... "; $next = next($a); $nextnext = next($a); echo "<br>".$next; echo "<br>".$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.00718.54
8.3.50.0070.00716.30
8.3.40.0060.01218.79
8.3.30.0070.00718.71
8.3.20.0050.00320.31
8.3.10.0000.00823.66
8.3.00.0080.00019.69
8.2.180.0150.00416.63
8.2.170.0130.00622.96
8.2.160.0110.00318.94
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00019.27
8.2.120.0000.00826.35
8.2.110.0060.00320.56
8.2.100.0080.00317.72
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0040.00817.50
8.2.60.0080.00017.93
8.2.50.0030.00518.10
8.2.40.0040.00420.59
8.2.30.0000.00719.13
8.2.20.0000.00718.06
8.2.10.0040.00418.04
8.2.00.0040.00417.99
8.1.280.0040.01125.92
8.1.270.0020.00522.24
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0140.00422.62
8.1.230.0040.00719.10
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0000.00817.22
8.1.180.0060.00318.10
8.1.170.0040.00418.39
8.1.160.0040.00419.00
8.1.150.0000.00720.48
8.1.140.0090.00019.51
8.1.130.0070.00018.81
8.1.120.0000.00817.41
8.1.110.0040.00417.40
8.1.100.0000.00717.44
8.1.90.0040.00417.40
8.1.80.0000.00717.46
8.1.70.0040.00417.29
8.1.60.0000.00817.47
8.1.50.0040.00417.35
8.1.40.0030.00517.36
8.1.30.0000.00717.44
8.1.20.0040.00417.54
8.1.10.0060.00317.51
8.1.00.0000.00817.29
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.44
8.0.270.0070.00017.32
8.0.260.0000.00616.73
8.0.250.0070.00016.84
8.0.240.0040.00416.99
8.0.230.0030.00316.92
8.0.220.0030.00316.79
8.0.210.0040.00416.85
8.0.200.0030.00516.80
8.0.190.0050.00316.92
8.0.180.0030.00516.77
8.0.170.0000.00716.84
8.0.160.0030.00516.96
8.0.150.0050.00316.85
8.0.140.0000.00816.75
8.0.130.0000.00513.36
8.0.120.0000.00816.76
8.0.110.0040.00416.98
8.0.100.0080.00017.00
8.0.90.0040.00416.78
8.0.80.0080.00816.89
8.0.70.0080.00016.82
8.0.60.0040.00416.79
8.0.50.0000.00716.81
8.0.30.0130.00417.05
8.0.20.0090.00917.40
8.0.10.0030.00516.77
8.0.00.0100.00716.69
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0030.00316.47
7.4.290.0100.00016.50
7.4.280.0070.00016.33
7.4.270.0000.00716.36
7.4.260.0000.00716.41
7.4.250.0070.00016.48
7.4.240.0020.00516.39
7.4.230.0040.00416.19
7.4.220.0070.01416.39
7.4.210.0070.00716.34
7.4.200.0000.00616.52
7.4.160.0070.01016.46
7.4.150.0030.01617.40
7.4.140.0110.00617.86
7.4.130.0090.01516.47
7.4.120.0130.00716.49
7.4.110.0130.00416.41
7.4.100.0090.01216.44
7.4.90.0150.00316.62
7.4.80.0070.01019.39
7.4.70.0070.00716.36
7.4.60.0100.00716.39
7.4.50.0090.00216.56
7.4.40.0040.01216.46
7.4.30.0040.01316.49
7.4.00.0120.00515.00
7.3.330.0000.00613.03
7.3.320.0000.00512.93
7.3.310.0040.00416.21
7.3.300.0070.00016.22
7.3.290.0070.00916.21
7.3.280.0100.00616.20
7.3.270.0060.01517.40
7.3.260.0120.00616.23
7.3.250.0130.00516.20
7.3.240.0080.00916.30
7.3.230.0060.01216.46
7.3.210.0090.00616.50
7.3.200.0170.00416.55
7.3.190.0130.00316.39
7.3.180.0060.00916.33
7.3.170.0070.01016.29
7.3.160.0120.00416.32
7.3.120.0060.01314.66
7.3.110.0070.01014.80
7.3.100.0040.00814.77
7.3.90.0040.01214.53
7.3.80.0030.01014.43
7.3.70.0030.00614.39
7.3.60.0070.00714.66
7.3.50.0090.00014.56
7.3.40.0060.00914.79
7.3.30.0030.01614.82
7.3.20.0060.00316.58
7.3.10.0050.01116.60
7.3.00.0060.00816.71
7.2.330.0090.00916.29
7.2.320.0170.00716.50
7.2.310.0030.01316.64
7.2.300.0180.00616.52
7.2.290.0130.00316.65
7.2.250.0070.01115.20
7.2.240.0070.01415.16
7.2.230.0050.00514.74
7.2.220.0140.00315.26
7.2.210.0070.01315.17
7.2.200.0110.00014.74
7.2.190.0040.01114.99
7.2.180.0030.01414.74
7.2.170.0040.01515.02
7.2.130.0040.01116.89
7.2.120.0040.01116.81
7.2.110.0070.00716.91
7.2.100.0070.00316.71
7.2.90.0070.00717.17
7.2.80.0030.01017.02
7.2.70.0120.00016.94
7.2.60.0610.00816.03
7.2.50.0060.00317.08
7.2.40.0040.00817.10
7.2.30.0070.00716.90
7.2.20.0030.01016.99
7.2.10.0070.00716.96
7.2.00.0020.01117.99
7.1.330.0110.00015.94
7.1.320.0030.01215.38
7.1.310.0090.00615.91
7.1.300.0060.00315.55
7.1.290.0090.00615.67
7.1.280.0110.00715.88
7.1.270.0130.00615.79
7.1.260.0090.00315.89
7.1.250.0100.00315.75
7.1.200.0210.00315.53
7.1.100.0040.00718.21
7.1.70.0240.02215.08
7.1.60.0400.01333.20
7.1.50.0440.01732.77
7.1.40.0340.01732.48
7.1.30.0410.00732.77
7.1.20.0450.00632.68
7.1.10.0260.01014.74
7.1.00.0210.01314.96
7.0.200.0100.01314.59
7.0.190.0220.01114.63
7.0.180.0170.01414.42
7.0.170.0210.00714.17
7.0.160.0340.00614.42
7.0.150.0270.01114.37
7.0.140.0100.01414.67
7.0.130.0140.01114.77
7.0.120.0350.01514.88
7.0.110.0240.01014.62
7.0.100.0210.00714.48
7.0.90.0260.01014.50
7.0.80.0270.00814.60
7.0.70.0190.01414.37
7.0.60.0190.01814.42
7.0.50.0170.01014.52
7.0.40.0200.01714.70
7.0.30.0170.01514.58
7.0.20.0220.00714.77
7.0.10.0350.00414.65
7.0.00.0270.01014.68

preferences:
30.21 ms | 401 KiB | 5 Q