3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ ["username" => "erick","location" => ["singapore"],"province" => ["jatim"]], ["username" => "thomas","location" => ["ukraina"],"province" => ["anonymouse"]] ]; $result = array_map(function ($arr) { return array_map(function($inner) { return is_array($inner) ? $inner[0] : $inner; }, $arr); }, $data); var_export($result);

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.0090.01319.74
8.4.150.0020.00014.05
8.4.140.0160.00817.48
8.4.130.0100.00920.49
8.4.120.0130.00624.31
8.4.110.0100.01018.85
8.4.100.0090.01118.93
8.4.90.0080.01122.25
8.4.80.0110.00918.79
8.4.70.0070.01120.68
8.4.60.0130.00818.82
8.4.50.0090.01122.48
8.4.40.0130.00619.40
8.4.30.0160.00318.57
8.4.20.0100.01017.86
8.4.10.0100.00723.99
8.3.280.0130.00718.35
8.3.270.0110.00816.58
8.3.260.0080.01216.55
8.3.250.0100.00818.73
8.3.240.0030.00517.18
8.3.230.0120.00816.57
8.3.220.0040.00519.04
8.3.210.0090.00716.61
8.3.200.0050.00316.55
8.3.190.0110.00817.17
8.3.180.0130.00518.67
8.3.170.0180.00016.55
8.3.160.0090.00617.10
8.3.150.0150.00316.72
8.3.140.0070.01120.68
8.3.130.0110.00016.54
8.3.120.0040.00418.80
8.3.110.0030.00620.94
8.3.100.0070.00424.06
8.3.90.0040.00426.77
8.3.80.0120.00316.75
8.3.70.0130.01016.58
8.3.60.0120.00616.50
8.3.50.0070.01420.18
8.3.40.0090.00622.27
8.3.30.0110.00418.43
8.3.20.0050.00324.18
8.3.10.0000.00824.66
8.3.00.0070.00026.16
8.2.290.0110.00520.67
8.2.280.0100.01018.29
8.2.270.0150.00316.63
8.2.260.0040.00416.77
8.2.250.0140.00416.72
8.2.240.0070.00317.07
8.2.230.0050.00222.58
8.2.220.0090.00037.54
8.2.210.0030.00626.77
8.2.200.0030.00618.29
8.2.190.0060.01216.88
8.2.180.0040.01125.92
8.2.170.0030.01218.91
8.2.160.0130.00022.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.48
8.2.110.0030.00620.52
8.2.100.0030.00620.41
8.1.330.0030.00721.97
8.1.320.0120.00515.99
8.1.310.0120.00616.01
8.1.300.0000.00818.32
8.1.290.0070.00730.84
8.1.280.0150.00025.92
8.1.270.0060.00320.55
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00618.67
8.1.230.0060.00618.70
7.4.320.0020.00516.42

preferences:
104.7 ms | 403 KiB | 5 Q