3v4l.org

run code in 300+ PHP versions simultaneously
<?php $products = array( 0 => array('name' => 'product_one', 'category' => 'category_one', 'employee' => '3234'), 1 => array('name' => 'product_two', 'category' => 'category_two', 'employee' => '5421'), 2 => array('name' => 'product_three', 'category' => 'category_one', 'employee' => '3234'), 3 => array('name' => 'product_one', 'category' => 'category_one', 'employee' => '2153'), 4 => array('name' => 'product_one', 'category' => 'category_two', 'employee' => '6312') ); $output = array(); foreach ($products as $p) { $output["{$p['name']}##{$p['category']}"] = $p; } $output = array_values($output); print_r($output);

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.70.0160.00716.58
8.3.60.0120.00318.43
8.3.50.0070.01117.96
8.3.40.0070.01018.80
8.3.30.0120.01218.56
8.3.20.0070.00021.89
8.3.10.0000.00822.05
8.3.00.0080.00023.51
8.2.190.0090.01216.58
8.2.180.0120.00625.92
8.2.170.0000.01419.00
8.2.160.0160.00322.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0030.00620.36
8.2.100.0120.00017.97
8.2.90.0050.00317.63
8.2.80.0090.00018.86
8.2.70.0060.00318.03
8.2.60.0030.00517.63
8.2.50.0000.00817.63
8.2.40.0040.00419.34
8.2.30.0000.00718.09
8.2.20.0040.00418.23
8.2.10.0050.00219.46
8.2.00.0070.00019.19
8.1.280.0100.01325.92
8.1.270.0050.00223.99
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0000.01022.65
8.1.230.0080.00320.91
8.1.220.0080.00018.77
8.1.210.0000.00818.89
8.1.200.0080.00017.47
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0030.00618.96
8.1.160.0030.00518.86
8.1.150.0040.00418.84
8.1.140.0000.00818.95
8.1.130.0030.00320.14
8.1.120.0060.00317.43
8.1.110.0030.00517.34
8.1.100.0030.00317.50
8.1.90.0000.00717.49
8.1.80.0000.00717.45
8.1.70.0070.00017.38
8.1.60.0050.00317.61
8.1.50.0000.00817.54
8.1.40.0000.00817.54
8.1.30.0090.00017.66
8.1.20.0030.00517.49
8.1.10.0000.00817.56
8.1.00.0040.00417.51
8.0.300.0000.00719.85
8.0.290.0000.00816.75
8.0.280.0030.00318.36
8.0.270.0000.00718.05
8.0.260.0000.00618.55
8.0.250.0000.00716.86
8.0.240.0040.00416.95
8.0.230.0000.00717.00
8.0.220.0060.00016.84
8.0.210.0000.00716.86
8.0.200.0030.00316.98
8.0.190.0070.00017.00
8.0.180.0000.00816.92
8.0.170.0050.00316.94
8.0.160.0000.00717.00
8.0.150.0000.00716.95
8.0.140.0060.00916.86
8.0.130.0050.00013.30
8.0.120.0040.00416.79
8.0.110.0030.00516.79
8.0.100.0000.00716.87
8.0.90.0070.00316.89
8.0.80.0020.01316.84
8.0.70.0000.00716.93
8.0.60.0000.00716.79
8.0.50.0040.00416.79
8.0.30.0150.00716.77
8.0.20.0110.00917.24
8.0.10.0070.00016.86
8.0.00.0100.00716.61
7.4.330.0020.00215.55
7.4.320.0030.00616.63
7.4.300.0060.00016.54
7.4.290.0000.00716.63
7.4.280.0050.00516.58
7.4.270.0030.00316.46
7.4.260.0030.00313.23
7.4.250.0050.00216.38
7.4.240.0040.00416.56
7.4.230.0030.00316.60
7.4.220.0050.00216.49
7.4.210.0100.00716.47
7.4.200.0050.00216.69
7.4.130.0080.01016.50
7.4.120.0150.00316.72
7.4.110.0070.01116.55
7.4.100.0140.00716.67
7.4.90.0070.01116.38
7.4.80.0190.00319.39
7.4.70.0110.00516.59
7.4.60.0090.00616.46
7.4.50.0070.01016.62
7.4.40.0130.00516.56
7.4.30.0100.00616.31
7.4.20.0060.01016.18
7.4.10.0100.00716.45
7.4.00.0090.00616.63
7.3.330.0030.00316.28
7.3.320.0050.00013.31
7.3.310.0050.00316.29
7.3.300.0070.00016.23
7.3.290.0090.00716.30
7.3.260.0120.00616.57
7.3.230.0030.01316.31
7.3.210.0070.01116.40
7.3.200.0070.01016.21
7.3.190.0000.01616.57
7.3.180.0120.00916.45
7.3.170.0130.00316.55
7.3.160.0090.00916.18
7.3.150.0050.01116.36
7.3.140.0100.00716.42
7.3.130.0100.00616.40
7.3.120.0030.01216.36
7.3.110.0030.01216.54
7.3.100.0070.01316.62
7.3.90.0090.01216.19
7.3.80.0070.01016.40
7.3.70.0090.00916.15
7.3.60.0110.00516.33
7.3.50.0100.00716.38
7.3.40.0080.00816.27
7.3.30.0150.00316.16
7.3.20.0180.00416.40
7.3.10.0070.01116.55
7.3.00.0120.01216.50
7.2.330.0090.00916.77
7.2.320.0000.01616.73
7.2.310.0030.01916.73
7.2.300.0110.00716.46
7.2.290.0060.01016.48
7.2.280.0040.01216.66
7.2.270.0130.00316.74
7.2.260.0110.00616.71
7.2.250.0040.01316.48
7.2.240.0120.00316.37
7.2.230.0100.01316.80
7.2.220.0080.00816.51
7.2.210.0060.01016.72
7.2.200.0030.01316.50
7.2.190.0040.01216.47
7.2.180.0100.00716.68
7.2.170.0080.01116.59
7.2.160.0060.01116.64
7.2.150.0130.00716.61
7.2.140.0100.00916.66
7.2.130.0180.00416.74
7.2.120.0030.01816.73
7.2.110.0180.00316.59
7.2.100.0100.01016.57
7.2.90.0120.00616.70
7.2.80.0130.00916.81
7.2.70.0000.02216.70
7.2.60.0100.01016.65
7.2.50.0030.01416.56
7.2.40.0070.01016.66
7.2.30.0100.00716.71
7.2.20.0080.00816.69
7.2.10.0170.00416.59
7.2.00.0120.00616.55

preferences:
51.25 ms | 401 KiB | 5 Q