3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = ['a' => 'AA', 'b' => 'BB', 'c' => 'CC']; $info = reset($source); var_dump($info); for ($index = 0; $index < 10; $index++) { $info = next($source); if ($info === false) break; var_dump($info); }

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.0110.00718.07
8.3.50.0110.00416.49
8.3.40.0090.00618.63
8.3.30.0110.00418.54
8.3.20.0000.00818.90
8.3.10.0080.00019.16
8.3.00.0070.00017.87
8.2.180.0110.00718.13
8.2.170.0110.00422.96
8.2.160.0090.00620.68
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0140.00019.55
8.2.120.0040.00426.35
8.2.110.0060.00322.13
8.2.100.0000.01117.72
8.2.90.0030.00517.75
8.2.80.0040.00418.79
8.2.70.0030.00517.91
8.2.60.0030.00517.80
8.2.50.0000.00818.10
8.2.40.0000.00719.18
8.2.30.0000.00719.43
8.2.20.0000.00717.90
8.2.10.0000.00718.05
8.2.00.0040.00419.33
8.1.280.0110.00425.92
8.1.270.0050.00323.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00719.13
8.1.230.0050.00520.21
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.23
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0000.00818.58
8.1.160.0050.00318.70
8.1.150.0000.00718.81
8.1.140.0020.00517.57
8.1.130.0030.00319.00
8.1.120.0040.00417.43
8.1.110.0040.00417.28
8.1.100.0040.00417.45
8.1.90.0070.00017.29
8.1.80.0030.00317.41
8.1.70.0080.00017.38
8.1.60.0000.00817.51
8.1.50.0090.00017.50
8.1.40.0000.00717.33
8.1.30.0000.00817.52
8.1.20.0040.00417.57
8.1.10.0000.00717.37
8.1.00.0030.00517.45
8.0.300.0090.00018.77
8.0.290.0080.00016.93
8.0.280.0000.00718.43
8.0.270.0000.00717.11
8.0.260.0000.00918.98
8.0.250.0000.00716.87
8.0.240.0040.00416.88
8.0.230.0070.00016.90
8.0.220.0000.00716.80
8.0.210.0050.00216.80
8.0.200.0030.00316.75
8.0.190.0000.00816.80
8.0.180.0000.00816.80
8.0.170.0000.00916.89
8.0.160.0040.00416.80
8.0.150.0060.00316.66
8.0.140.0000.00716.75
8.0.130.0050.00013.16
8.0.120.0020.00516.65
8.0.110.0070.00016.87
8.0.100.0030.00516.88
8.0.90.0000.00716.80
8.0.80.0110.00516.81
8.0.70.0040.00416.67
8.0.60.0080.00016.94
8.0.50.0000.00716.72
8.0.30.0060.01217.09
8.0.20.0060.01217.40
8.0.10.0040.00416.98
8.0.00.0100.00816.82
7.4.330.0000.00615.55
7.4.320.0000.00716.53
7.4.300.0060.00016.50
7.4.290.0030.00316.59
7.4.280.0040.00416.50
7.4.270.0040.00416.45
7.4.260.0000.00716.52
7.4.250.0000.00816.55
7.4.240.0030.00316.57
7.4.230.0040.00416.33
7.4.220.0050.00216.52
7.4.210.0090.00916.41
7.4.200.0030.00316.40
7.4.160.0100.00516.43
7.4.140.0120.00617.86
7.4.130.0040.01216.54
7.4.120.0120.00816.48
7.4.110.0180.00016.38
7.4.100.0110.00616.54
7.4.90.0090.01416.36
7.4.80.0080.00819.39
7.4.70.0110.00516.65
7.4.60.0060.01116.52
7.4.50.0060.00916.36
7.4.40.0090.01616.44
7.4.00.0040.00814.74
7.3.330.0000.00613.12
7.3.320.0000.00813.20
7.3.310.0000.00716.32
7.3.300.0040.00416.34
7.3.290.0030.00316.31
7.3.280.0080.01116.30
7.3.260.0070.01016.41
7.3.240.0090.00816.43
7.3.230.0130.00316.44
7.3.210.0120.01216.41
7.3.200.0100.00716.62
7.3.190.0110.00616.59
7.3.180.0100.00716.25
7.3.170.0100.01016.20
7.3.160.0110.00516.46
7.3.10.0060.00816.59
7.3.00.0070.00316.63
7.2.330.0090.00916.57
7.2.320.0100.01016.48
7.2.310.0070.01116.32
7.2.300.0140.01016.26
7.2.290.0120.00416.38
7.2.130.0030.00917.04
7.2.120.0030.00616.91
7.2.110.0040.00716.75
7.2.100.0030.00816.78
7.2.90.0000.01016.68
7.2.80.0090.00316.75
7.2.70.0050.00416.95
7.2.60.0690.00816.22
7.2.50.0840.00716.19
7.2.40.0720.01016.30
7.2.30.0790.00816.34
7.2.20.0710.01116.29
7.2.10.0590.01116.42
7.2.00.0660.00716.33
7.1.250.0080.00515.90
7.1.200.0070.00415.91
7.1.170.1830.01013.70
7.1.160.2180.01016.87
7.1.150.2270.01116.65
7.1.140.2050.01416.75
7.1.130.1860.01216.38
7.1.120.1920.01716.77
7.1.110.2230.01115.86
7.1.100.1870.01015.84
7.1.90.2000.01016.19
7.1.80.1730.00816.38
7.1.70.1800.01015.43
7.1.60.2410.01933.14
7.1.50.2260.01433.00
7.1.40.2030.02132.76
7.1.30.2140.01632.59
7.1.20.2410.01932.96
7.1.10.1440.01314.78
7.1.00.2010.01315.02

preferences:
55.66 ms | 400 KiB | 5 Q