3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original_values = array( 'Bridge Work' => array( array('Name' => 'NJ Trunpike_Bridge Repair Work', 'Location' => 'New Jersey', 'State' => 'New Jersey'), array('Name' => 'Honoapiilani Highway Bridge Truss', 'Location' => 'Maui', 'State' => 'Hawaii'), array('Name' => 'BlueCross Blueshield of Tennessee (Bridge)', 'Location' => 'Memphis', 'State' => 'Tennessee'), array('Name' => 'Henderson Center Connector Bridge', 'Location' => 'Coquitlam', 'State' => 'British Columbia'), ), 'Educational' => array( array('Name' => 'RTI TASS Complex Admin Bldg', 'Location' => 'Bluffdale', 'State' => 'Utah'), array('Name' => 'Auburn High School', 'Location' => 'Auburn', 'State' => 'Washington'), array('Name' => 'Reed College', 'Location' => 'Portland', 'State' => 'Oregon'), array('Name' => 'Shorewood High School', 'Location' => 'Shoreline', 'State' => 'Washington'), ),); $sorted_values = array(); foreach($original_values as $key => $value) { $columns = null; foreach ($value as $index => $element) { $columns[] = $element['State']; } $temp = $value; array_multisort($columns, SORT_ASC, $temp); $sorted_values[$key] = $temp; } echo '<pre>'; print_r($sorted_values); echo '</pre>';

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.60.0040.01116.75
8.3.50.0140.00022.01
8.3.40.0140.00318.71
8.3.30.0000.01419.21
8.3.20.0040.00420.16
8.3.10.0040.00423.61
8.3.00.0000.00819.25
8.2.180.0040.01116.50
8.2.170.0070.00722.96
8.2.160.0100.00320.44
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0030.01026.16
8.2.120.0070.00022.25
8.2.110.0000.01120.28
8.2.100.0070.00417.72
8.2.90.0000.00919.36
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.00818.03
8.2.50.0030.00618.07
8.2.40.0000.00718.22
8.2.30.0070.00018.13
8.2.20.0050.00317.67
8.2.10.0050.00517.98
8.2.00.0070.00417.75
8.1.280.0110.00325.92
8.1.270.0060.00322.06
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.77
8.1.230.0090.00322.75
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.38
8.1.190.0050.00317.43
8.1.180.0000.01019.13
8.1.170.0030.00718.50
8.1.160.0050.00221.89
8.1.150.0040.00418.56
8.1.140.0040.00417.45
8.1.130.0050.00317.78
8.1.120.0050.00217.37
8.1.110.0040.00417.46
8.1.100.0070.00017.52
8.1.90.0050.00217.34
8.1.80.0090.00017.49
8.1.70.0030.00317.39
8.1.60.0000.00817.63
8.1.50.0080.00017.51
8.1.40.0030.00517.51
8.1.30.0050.00317.47
8.1.20.0050.00317.65
8.1.10.0040.00417.54
8.1.00.0000.00917.50
8.0.300.0050.00319.03
8.0.290.0050.00317.15
8.0.280.0070.00018.43
8.0.270.0070.00017.29
8.0.260.0060.00017.25
8.0.250.0030.00316.96
8.0.240.0050.00316.97
8.0.230.0000.00716.92
8.0.220.0030.00516.95
8.0.210.0050.00516.89
8.0.200.0060.00016.84
8.0.190.0040.00416.95
8.0.180.0030.00316.86
8.0.170.0030.00516.86
8.0.160.0060.00316.82
8.0.150.0030.00316.89
8.0.140.0050.00316.89
8.0.130.0030.00313.27
8.0.120.0000.00716.88
8.0.110.0050.00316.95
8.0.100.0050.00316.74
8.0.90.0040.00416.99
8.0.80.0070.01316.82
8.0.70.0070.00016.73
8.0.60.0030.00516.78
8.0.50.0000.00716.89
8.0.30.0130.00717.03
8.0.20.0150.00817.40
8.0.10.0000.00716.87
8.0.00.0100.00716.95
7.4.330.0000.00515.00
7.4.320.0030.00516.65
7.4.300.0030.00316.49
7.4.290.0070.00016.50
7.4.280.0000.00716.43
7.4.270.0030.00316.59
7.4.260.0000.00616.38
7.4.250.0060.00316.49
7.4.240.0040.00316.48
7.4.230.0000.00716.35
7.4.220.0070.01016.62
7.4.210.0040.01116.64
7.4.200.0030.00316.60
7.4.190.0070.00016.76
7.4.160.0040.01216.58
7.4.150.0120.00617.40
7.4.140.0070.01117.86
7.4.130.0130.00416.54
7.4.120.0050.01316.49
7.4.110.0110.00616.50
7.4.100.0090.00816.55
7.4.90.0070.01016.56
7.4.80.0100.01419.39
7.4.70.0100.00716.52
7.4.60.0110.00616.33
7.4.50.0000.00416.46
7.4.40.0040.01422.77
7.4.30.0100.01016.53
7.4.00.0100.00714.92
7.3.330.0020.00313.18
7.3.320.0000.00513.22
7.3.310.0050.00216.41
7.3.300.0030.00316.22
7.3.290.0110.00416.34
7.3.280.0050.01216.36
7.3.270.0140.00517.40
7.3.260.0160.00616.58
7.3.250.0100.00716.37
7.3.240.0100.00716.56
7.3.230.0130.00416.39
7.3.210.0120.00616.59
7.3.200.0150.00419.39
7.3.190.0160.00616.54
7.3.180.0000.01416.55
7.3.170.0060.01116.44
7.3.160.0100.00716.33
7.3.120.0090.00615.14
7.2.330.0070.01116.68
7.2.320.0130.00316.77
7.2.310.0040.01216.71
7.2.300.0060.00916.68
7.2.290.0070.01016.55
7.2.00.0100.00619.43
7.1.100.0030.00618.35
7.1.70.0170.00017.10
7.1.60.0110.01519.46
7.1.50.0110.01116.84
7.1.00.0030.07722.43
7.0.200.0040.00416.85
7.0.140.0030.07722.04
7.0.60.0130.07719.94
7.0.50.0070.09017.88
7.0.40.0130.06020.13
7.0.30.0200.04020.34
7.0.20.0200.04720.23
7.0.10.0100.05320.34
7.0.00.0100.08020.07
5.6.210.0130.04020.75
5.6.200.0030.04018.18
5.6.190.0070.04720.63
5.6.180.0170.08020.48
5.6.170.0300.04320.52
5.6.160.0170.05320.57
5.6.150.0100.03318.25
5.6.140.0100.08318.17
5.6.130.0100.07718.15
5.6.120.0030.04321.02
5.6.110.0070.08721.12
5.6.100.0070.04021.00
5.6.90.0000.07021.11
5.6.80.0030.08320.38
5.6.70.4470.03320.50
5.5.350.0030.07720.32
5.5.340.0030.04717.92
5.5.330.0030.08720.28
5.5.320.0330.03020.19
5.5.310.0330.06320.26
5.5.300.0130.08317.95
5.5.290.0070.08017.98
5.5.280.0070.04020.78
5.5.270.0070.08320.77
5.5.260.0030.04020.77
5.5.250.0030.06020.72
5.5.240.0270.07720.20
5.4.450.0400.08019.61
5.4.440.0930.06319.46
5.4.430.0330.06319.16
5.4.420.0670.05719.33
5.4.410.1200.05719.48
5.4.400.0330.04319.14
5.4.390.0800.05018.98
5.4.380.0300.06318.80
5.4.370.0370.04718.83
5.4.360.0300.06018.60
5.4.350.0230.06318.63
5.4.340.0400.05018.63
5.4.320.0100.04012.50
5.4.310.0080.04512.50
5.4.300.0110.03312.50
5.4.290.0080.03812.49
5.4.280.0060.03712.36
5.4.270.0130.04812.36
5.4.260.0050.04512.36
5.4.250.0120.03812.36
5.4.240.0130.05112.36
5.4.230.0110.05412.35
5.4.220.0130.05412.36
5.4.210.0090.05612.36
5.4.200.0170.04612.36
5.4.190.0070.04412.35
5.4.180.0110.04812.35
5.4.170.0140.04612.36
5.4.160.0060.03712.36
5.4.150.0120.03312.36
5.4.140.0120.04112.04
5.4.130.0090.05112.03
5.4.120.0100.05211.98
5.4.110.0100.03711.98
5.4.100.0120.04711.98
5.4.90.0100.04111.98
5.4.80.0120.05111.98
5.4.70.0060.03711.97
5.4.60.0140.03411.98
5.4.50.0120.04311.98
5.4.40.0070.04111.96
5.4.30.0140.04211.96
5.4.20.0110.04711.96
5.4.10.0080.04211.96
5.4.00.0090.04711.46
5.3.290.0100.03812.80
5.3.280.0130.05112.71
5.3.270.0060.04212.72
5.3.260.0080.04112.72
5.3.250.0070.04312.72
5.3.240.0100.03712.72
5.3.230.0120.03912.71
5.3.220.0100.03712.68
5.3.210.0170.06112.68
5.3.200.0070.04112.68
5.3.190.0070.04712.67
5.3.180.0130.05512.68
5.3.170.0080.05512.67
5.3.160.0120.05012.67
5.3.150.0110.05412.67
5.3.140.0120.05712.66
5.3.130.0100.06012.66
5.3.120.0080.05612.65
5.3.110.0060.06112.66
5.3.100.0160.04712.11
5.3.90.0150.04712.08
5.3.80.0090.03812.07
5.3.70.0150.03312.07
5.3.60.0070.03912.06
5.3.50.0070.04012.00
5.3.40.0140.04512.00
5.3.30.0070.03911.96
5.3.20.0110.05011.74
5.3.10.0080.04911.70
5.3.00.0110.03911.70
5.2.170.0080.0369.20
5.2.160.0060.0409.19
5.2.150.0080.0289.19
5.2.140.0060.0309.19
5.2.130.0090.0279.15
5.2.120.0090.0279.15
5.2.110.0080.0289.16
5.2.100.0070.0279.15
5.2.90.0080.0289.15
5.2.80.0090.0289.14
5.2.70.0060.0409.15
5.2.60.0100.0339.10
5.2.50.0090.0409.07
5.2.40.0100.0419.05
5.2.30.0100.0439.02
5.2.20.0030.0369.01
5.2.10.0080.0318.93
5.2.00.0060.0368.79
5.1.60.0070.0278.07
5.1.50.0070.0278.07
5.1.40.0030.0288.05
5.1.30.0080.0288.39
5.1.20.0100.0378.42
5.1.10.0080.0258.14
5.1.00.0050.0358.14
5.0.50.0090.0216.63
5.0.40.0080.0296.48
5.0.30.0080.0386.29
5.0.20.0060.0286.27
5.0.10.0060.0296.25
5.0.00.0050.0336.24
4.4.90.0040.0214.78
4.4.80.0080.0144.75
4.4.70.0070.0144.75
4.4.60.0070.0204.75
4.4.50.0040.0184.77
4.4.40.0070.0294.71
4.4.30.0050.0144.76
4.4.20.0070.0134.84
4.4.10.0060.0144.85
4.4.00.0050.0234.76
4.3.110.0050.0144.67
4.3.100.0070.0134.66
4.3.90.0120.0154.64
4.3.80.0030.0344.59
4.3.70.0040.0154.63
4.3.60.0040.0164.63
4.3.50.0050.0234.63
4.3.40.0060.0314.54
4.3.30.0020.0183.30
4.3.20.0040.0163.29
4.3.10.0070.0143.25
4.3.00.0200.01713.47

preferences:
45.57 ms | 401 KiB | 5 Q