3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['a', 'b']; $b = iterator_to_array($a); var_dump($b);

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.5.20.0100.00719.99
8.5.10.0100.00816.36
8.5.00.0120.00919.93
8.4.170.0140.00720.43
8.4.160.0140.01119.61
8.4.150.0020.00014.05
8.4.140.0100.01217.43
8.4.130.0150.00517.61
8.4.120.0120.00720.59
8.4.110.0130.00822.42
8.4.100.0110.00917.68
8.4.90.0130.00918.52
8.4.80.0080.01317.53
8.4.70.0060.01217.45
8.4.60.0180.00417.50
8.4.50.0150.00917.21
8.4.40.0190.00517.47
8.4.30.0210.00717.39
8.4.20.0230.00517.09
8.4.10.0180.00617.75
8.3.300.0150.00820.50
8.3.290.0140.00620.88
8.3.280.0160.00318.38
8.3.270.0090.01116.63
8.3.260.0080.01216.73
8.3.250.0100.00818.82
8.3.240.0090.01016.39
8.3.230.0180.00716.29
8.3.220.0060.00616.66
8.3.210.0050.00516.59
8.3.200.0160.00515.99
8.3.190.0160.00616.29
8.3.180.0050.00616.51
8.3.170.0170.00516.49
8.3.160.0180.00716.23
8.3.150.0190.00416.55
8.3.140.0170.00616.11
8.3.130.0180.00116.52
8.3.120.0140.00616.21
8.3.110.0150.00316.66
8.3.100.0190.00416.21
8.3.90.0190.00616.39
8.3.80.0190.00216.34
8.3.70.0180.00516.50
8.3.60.0180.00416.25
8.3.50.0070.00216.61
8.3.40.0150.00317.08
8.3.30.0140.00417.31
8.3.20.0130.00417.24
8.3.10.0130.00417.48
8.3.00.0040.00617.31
8.2.300.0160.00620.27
8.2.290.0120.00616.19
8.2.280.0160.00216.45
8.2.270.0110.00716.70
8.2.260.0140.00516.32
8.2.250.0130.00516.56
8.2.240.0160.00216.48
8.2.230.0150.00316.21
8.2.220.0150.00616.01
8.2.210.0140.00416.21
8.2.200.0190.00016.61
8.2.190.0150.00316.18
8.2.180.0130.00616.25
8.2.170.0140.00617.71
8.2.160.0190.00317.34
8.2.150.0160.00417.60
8.2.140.0160.00417.14
8.2.130.0170.00417.19
8.2.120.0140.00217.06
8.2.110.0160.00417.18
8.2.100.0180.00317.25
8.2.90.0200.00417.20
8.2.80.0170.00617.36
8.2.70.0180.00617.41
8.2.60.0190.00417.26
8.2.50.0150.00417.30
8.2.40.0140.00517.29
8.2.30.0200.00317.41
8.2.20.0170.00417.33
8.2.10.0180.00317.25
8.2.00.0150.00517.26
8.1.340.0130.00621.63
8.1.330.0110.00716.09

preferences:
36.41 ms | 403 KiB | 5 Q