3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'FirstName' => 'Robin', 'Address' => 'Cave', 'LastName' => 'Mactimmy', 'Tel' => '9076', 'Email' => 'i@o.com', ], [ 'Address' => 'uytr', 'FirstName' => 'Bill', 'Email' => 'j@k.com', 'LastName' => 'Gates', 'Tel' => '7654', ], [ 'LastName' => 'Mahoney', 'Email' => 'y@i.ie', 'FirstName' => 'Tom', 'Tel' => '5689', 'Address' => 'kklll', ] ]; array_walk( $array, fn(&$row, $index, $order) => $row = array_merge($order, $row), array_flip(['FirstName', 'LastName', 'Address', 'Tel', 'Email']) ); var_export($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.00.0130.00719.80
8.4.150.0020.00014.05
8.4.140.0130.00917.68
8.4.130.0110.00918.56
8.4.120.0120.00924.32
8.4.110.0120.00818.72
8.4.100.0100.01018.76
8.4.90.0130.00824.13
8.4.80.0090.00418.37
8.4.70.0100.00618.07
8.4.60.0100.01019.02
8.4.50.0120.00922.42
8.4.40.0070.00720.32
8.4.30.0080.01118.53
8.4.20.0200.00017.80
8.4.10.0060.00324.12
8.3.280.0130.00918.44
8.3.270.0110.00916.58
8.3.260.0140.00516.54
8.3.250.0070.01218.66
8.3.240.0120.00717.18
8.3.230.0120.00616.42
8.3.220.0010.00619.10
8.3.210.0150.00516.79
8.3.200.0050.00416.53
8.3.190.0050.00417.05
8.3.180.0040.01416.57
8.3.170.0000.00716.99
8.3.160.0180.00516.38
8.3.150.0070.00419.15
8.3.140.0050.00320.76
8.3.130.0050.00318.37
8.3.120.0140.00417.11
8.3.110.0110.00716.57
8.3.100.0110.00416.54
8.3.90.0070.01416.38
8.3.80.0060.00317.97
8.3.70.0110.00416.58
8.3.60.0110.00716.63
8.3.50.0110.00318.18
8.3.40.0000.01420.29
8.3.30.0110.00318.71
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0060.00326.16
8.2.290.0070.00320.44
8.2.280.0130.00618.45
8.2.270.0150.00316.50
8.2.260.0150.00317.26
8.2.250.0080.00018.22
8.2.240.0150.00319.11
8.2.230.0030.00620.94
8.2.220.0130.00324.06
8.2.210.0120.00626.77
8.2.200.0040.00416.63
8.2.190.0070.01016.88
8.2.180.0040.01125.92
8.2.170.0120.00319.09
8.2.160.0120.00422.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0090.00019.26
8.2.100.0060.00618.16
8.2.90.0040.00417.84
8.2.80.0040.00418.28
8.2.70.0040.00417.63
8.2.60.0070.00317.63
8.2.50.0000.00918.05
8.2.40.0000.00920.01
8.2.30.0040.00418.14
8.2.20.0050.00519.25
8.2.10.0050.00218.01
8.2.00.0000.00819.23
8.1.330.0010.00722.08
8.1.320.0090.01017.95
8.1.310.0070.01016.42
8.1.300.0030.00617.80
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00722.39
8.1.230.0060.00621.04
8.1.220.0000.00818.64
8.1.210.0040.00419.09
8.1.200.0000.00917.48
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0030.00319.02
8.1.150.0020.00518.65
8.1.140.0000.00817.50
8.1.130.0030.00318.96
8.1.120.0030.00517.39
8.1.110.0040.00417.43
8.1.100.0000.00717.40
8.1.90.0140.00617.35
8.1.80.0120.01017.27
8.1.70.0130.00417.31
8.1.60.0160.00317.51
8.1.50.0130.00417.39
8.1.40.0110.00717.54
8.1.30.0110.00817.66
8.1.20.0160.00417.65
8.1.10.0160.00317.38
8.1.00.0140.00617.31
8.0.300.0030.00319.90
8.0.290.0070.00016.75
8.0.280.0040.00418.40
8.0.270.0070.00016.88
8.0.260.0020.00518.40
8.0.250.0070.00016.78
8.0.240.0000.00716.91
8.0.230.0050.00316.84
8.0.220.0080.00816.73
8.0.210.0080.00816.68
8.0.200.0140.00216.91
8.0.190.0100.00516.95
8.0.180.0170.00016.74
8.0.170.0080.00816.80
8.0.160.0160.00016.86
8.0.150.0050.01016.88
8.0.140.0100.00616.75
8.0.130.0160.00316.85
8.0.120.0100.00316.81
8.0.110.0130.00016.78
8.0.100.0100.00316.72
8.0.90.0080.00416.91
8.0.80.0030.00516.74
8.0.70.0030.00316.87
8.0.60.0050.00516.79
8.0.50.0080.00016.71
8.0.30.0000.00916.69
8.0.20.0080.00016.95
8.0.10.0060.00316.81
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0170.00016.52
7.4.290.0070.01116.66
7.4.280.0170.00316.45
7.4.270.0160.00316.44
7.4.260.0130.00616.48
7.4.250.0120.00616.63
7.4.240.0170.00016.51
7.4.230.0150.00316.64
7.4.220.0150.00016.52
7.4.210.0110.00616.51
7.4.200.0140.00016.50
7.4.190.0100.00516.47
7.4.180.0150.00016.62
7.4.160.0080.00416.56
7.4.150.0030.00716.50
7.4.140.0040.00416.49
7.4.130.0000.00716.45
7.4.120.0030.00316.54
7.4.110.0020.00516.44
7.4.100.0040.00416.41
7.4.90.0130.00016.47
7.4.80.0110.00316.48
7.4.70.0070.00416.47
7.4.60.0100.00016.47
7.4.50.0040.00616.33
7.4.40.0100.00016.46
7.4.30.0050.00516.36
7.4.20.0100.00016.44
7.4.10.0070.00216.40
7.4.00.0100.00016.45

preferences:
34.03 ms | 403 KiB | 5 Q