3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 'key_one' => 1, 'key_two' => 2, 'nested_array' => [ 'key_three' => 3, 'key_four' => 4, ], ]; var_export( iterator_to_array( new RecursiveIteratorIterator(new RecursiveArrayIterator($array)) ) );

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.60.0110.00716.86
8.5.30.0120.00519.28
8.5.20.0100.00720.11
8.5.10.0100.00916.61
8.5.00.0100.01120.06
8.4.180.0130.00725.75
8.4.170.0170.00720.29
8.4.160.0120.01022.32
8.4.150.0080.00416.82
8.4.140.0150.00917.32
8.4.130.0150.00617.81
8.4.120.0090.00623.97
8.4.110.0060.00317.73
8.4.100.0100.01118.68
8.4.90.0070.00320.54
8.4.80.0120.01018.43
8.4.70.0130.00817.76
8.4.60.0100.01118.75
8.4.50.0110.01118.44
8.4.40.0120.00917.59
8.4.30.0150.00318.88
8.4.20.0170.00319.32
8.4.10.0060.00319.30
8.3.300.0090.01120.62
8.3.290.0100.01020.74
8.3.280.0110.00918.29
8.3.270.0080.01216.39
8.3.260.0110.00816.56
8.3.250.0120.00618.62
8.3.240.0050.00317.07
8.3.230.0100.00816.64
8.3.220.0120.00718.88
8.3.210.0110.00816.60
8.3.200.0030.00616.48
8.3.190.0080.01016.98
8.3.180.0090.01017.29
8.3.170.0040.01520.47
8.3.160.0170.00017.25
8.3.150.0100.01016.82
8.3.140.0050.00316.45
8.3.130.0060.00316.31
8.3.120.0100.00720.48
8.3.110.0080.01216.54
8.3.100.0060.00318.19
8.3.90.0110.00726.77
8.3.80.0040.00717.97
8.3.70.0140.01016.58
8.3.60.0390.01416.58
8.3.50.0170.00316.58
8.3.40.0170.01717.25
8.3.30.0300.00617.13
8.3.20.0370.00017.13
8.3.10.0260.00917.38
8.3.00.0290.01117.25
8.2.300.0110.00921.92
8.2.290.0090.00920.48
8.2.280.0080.00518.63
8.2.270.0050.00516.98
8.2.260.0040.00418.23
8.2.250.0060.00316.58
8.2.240.0090.00017.20
8.2.230.0050.00320.94
8.2.220.0060.00324.06
8.2.210.0150.00326.77
8.2.200.0110.00018.29
8.2.190.0240.00816.58
8.2.180.0390.01316.60
8.2.170.0560.01617.38
8.2.160.0650.00917.38
8.2.150.0300.00617.50
8.2.140.0460.00017.00
8.2.130.0280.01217.25
8.2.120.0240.01717.22
8.2.110.0320.01117.49
8.2.100.0270.00517.63
8.2.90.0320.01117.38
8.2.80.0370.00617.13
8.2.70.0300.01717.38
8.2.60.0370.00617.25
8.2.50.0310.00417.13
8.2.40.0320.00417.25
8.2.30.0300.00317.50
8.2.20.0200.01217.35
8.2.10.0330.00417.24
8.2.00.0270.01217.25
8.1.340.0160.00319.86
8.1.330.0120.01021.89
8.1.320.0070.00316.20
8.1.310.0070.00718.25
8.1.300.0060.00316.88
8.1.290.0000.00830.84
8.1.280.0350.00516.58
8.1.270.0380.00616.98
8.1.260.0280.00617.23
8.1.250.0360.01217.23
8.1.240.0310.00717.13
8.1.230.0370.00417.00
8.1.220.0260.01617.00
8.1.210.0280.01117.10
8.1.200.0220.00917.22
8.1.190.0230.00917.10
8.1.180.0300.00817.00
8.1.170.0370.01017.13
8.1.160.0330.00017.11
8.1.150.0230.00816.98
8.1.140.0290.00317.21
8.1.130.0290.01317.13
8.1.120.0290.01317.34
8.1.110.0350.00717.13
8.1.100.0410.00017.22
8.1.90.0300.00717.22
8.1.80.0260.00317.22
8.1.70.0270.00817.13
8.1.60.0330.00617.00
8.1.50.0300.00817.10
8.1.40.0310.01417.12
8.1.30.0240.01217.25
8.1.20.0260.00717.25
8.1.10.0270.00617.13
8.1.00.0310.00317.22
5.6.400.0250.00616.58

preferences:
61.28 ms | 989 KiB | 5 Q