3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 0 => array ( 'company_id' => 1, 'company_abbrev' => 'amd', 'description' => 'amd blah blah blah 1', ), 1 => array ( 'company_id' => 1, 'company_abbrev' => 'amd', 'description' => 'amd blah blah blah 2', ), 2 => array ( 'company_id' => 2, 'company_abbrev' => 'int', 'description' => 'int blah blah 1', ), 3 => array ( 'company_id' => 2, 'company_abbrev' => 'int', 'description' => 'int blah blah 2', ), ); $result = []; foreach ($array as $row) { extract($row); $result[$company_abbrev]['company_id'] = $company_id; $result[$company_abbrev]['job_descriptions'][] = $description; } 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.4.120.0150.00520.32
8.4.110.0040.00422.32
8.4.100.0110.00617.73
8.4.90.0100.00720.67
8.4.80.0060.00619.50
8.4.70.0120.00617.93
8.4.60.0080.00118.73
8.4.50.0100.01019.29
8.4.40.0130.00719.36
8.4.30.0160.00318.56
8.4.20.0110.00417.93
8.4.10.0080.00822.00
8.3.250.0100.01119.00
8.3.240.0120.00716.73
8.3.230.0080.00116.69
8.3.220.0050.00217.09
8.3.210.0050.00316.78
8.3.200.0060.00316.44
8.3.190.0100.00517.18
8.3.180.0060.00216.54
8.3.170.0150.00318.68
8.3.160.0100.00718.37
8.3.150.0030.00618.77
8.3.140.0060.00316.53
8.3.130.0080.00018.46
8.3.120.0170.00318.93
8.3.110.0030.00520.94
8.3.100.0030.00618.54
8.3.90.0050.00326.77
8.3.80.0060.00316.75
8.3.70.0120.00316.63
8.3.60.0070.00716.63
8.3.50.0140.00318.11
8.3.40.0060.00918.86
8.3.30.0070.00719.31
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0060.00326.16
8.2.290.0120.00720.34
8.2.280.0070.00219.98
8.2.270.0060.00917.42
8.2.260.0070.00316.61
8.2.250.0050.00316.65
8.2.240.0090.00617.13
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0060.00616.50
8.2.190.0140.00418.18
8.2.180.0150.00425.92
8.2.170.0150.00619.09
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0090.00021.13
8.2.110.0040.00721.10
8.2.100.0060.00617.91
8.2.90.0040.00418.34
8.2.80.0090.00019.16
8.2.70.0080.00017.75
8.2.60.0000.00817.75
8.2.50.0060.00317.98
8.2.40.0080.00018.16
8.2.30.0040.00418.13
8.2.20.0040.00420.36
8.2.10.0000.00718.11
8.2.00.0040.00419.24
8.1.330.0010.00723.83
8.1.320.0130.00716.06
8.1.310.0100.00716.88
8.1.300.0040.00418.51
8.1.290.0040.00430.84
8.1.280.0120.00625.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.06
8.1.230.0000.01122.82
8.1.220.0000.00817.91
8.1.210.0060.00318.77
8.1.200.0090.00017.48
8.1.190.0030.00617.35
8.1.180.0080.00418.10
8.1.170.0080.00017.62
8.1.160.0000.00718.86
8.1.150.0080.00018.71
8.1.140.0000.00717.33
8.1.130.0000.00718.88
8.1.120.0000.00717.38
8.1.110.0070.00017.48
8.1.100.0040.00417.49
8.1.90.0080.00017.50
8.1.80.0070.00017.34
8.1.70.0030.00317.44
8.1.60.0040.00417.62
8.1.50.0230.00417.42
8.1.40.0110.00417.52
8.1.30.0150.00417.58
8.1.20.0140.00617.57
8.1.10.0130.00917.46
8.1.00.0220.00417.46
8.0.300.0040.00420.23
8.0.290.0080.00016.75
8.0.280.0030.00318.51
8.0.270.0030.00316.86
8.0.260.0030.00318.41
8.0.250.0030.00316.85
8.0.240.0070.00016.96
8.0.230.0040.00416.98
8.0.220.0050.00216.77
8.0.210.0030.00316.89
8.0.200.0030.00316.88
8.0.190.0000.00716.97
8.0.180.0160.00416.91
8.0.170.0180.00016.80
8.0.160.0120.00816.94
8.0.150.0140.00416.77
8.0.140.0160.00316.85
8.0.130.0160.00316.79
8.0.120.0130.00616.82
8.0.110.0160.00416.79
8.0.100.0180.00316.80
8.0.90.0100.00616.79
8.0.80.0120.00416.75
8.0.70.0100.00316.79
8.0.60.0070.00716.76
8.0.50.0170.00316.82
8.0.30.0120.01216.88
8.0.20.0210.00416.93
8.0.10.0160.01017.02
7.4.330.0050.00015.55
7.4.320.0000.00616.52
7.4.300.0030.00316.66
7.4.290.0180.00816.48
7.4.280.0190.00416.61
7.4.270.0160.00616.53
7.4.260.0190.00316.49
7.4.250.0140.00616.60
7.4.240.0110.00016.59
7.4.230.0140.00016.59
7.4.220.0050.01016.52
7.4.210.0120.00316.62
7.4.200.0100.00316.43
7.4.190.0180.00016.56
7.4.180.0100.01016.61
7.4.160.0170.00316.43
7.4.150.0130.00716.56
7.4.140.0180.00416.56
7.4.130.0100.01016.46
7.4.120.0140.00416.54
7.4.110.0170.00316.45
7.4.100.0180.00016.39
7.4.90.0110.00816.41
7.4.80.0140.00616.49
7.4.70.0070.00716.45
7.4.60.0000.01116.42
7.4.50.0070.00716.36
7.4.40.0120.00316.40
7.4.30.0090.00516.45
7.4.20.0150.00016.43
7.4.10.0130.00016.31
7.4.00.0060.00616.39

preferences:
28 ms | 403 KiB | 5 Q