3v4l.org

run code in 300+ PHP versions simultaneously
<?php $specification = array( 'type' => array( 'Excavator', 'Mini Excavator', 'Mini Excavator', 'Excavator', 'Excavator', 'Excavator', 'Rubber Tire', 'Rubber Tire', 'Rubber Tire', ), 'estimated_weight' => array( '680', '110', '130', '675', '750', '750', '200', '200', '300', ), 'weight_class' => array( '24,000 - 33,000 Lbs', '2,500 - 4,000 Lbs', '4,000 - 8,000 Lbs', '24,000 - 33,000 Lbs', '40,000 - 45,000 Lbs', '40,000 - 45,000 Lbs', 'Rubber Tire', 'Rubber Tire', 'Rubber Tire', ), ); array_multisort( $specification['weight_class'], SORT_NATURAL, $specification['estimated_weight'], $specification['type'], ); var_export($specification);

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.0090.01020.60
8.4.110.0080.01122.42
8.4.100.0110.01217.69
8.4.90.0120.00718.54
8.4.80.0070.00218.72
8.4.70.0070.01017.67
8.4.60.0110.00918.90
8.4.50.0150.00418.59
8.4.40.0100.01019.32
8.4.30.0100.01019.03
8.4.20.0050.00518.82
8.4.10.0070.01324.08
8.3.250.0150.00518.67
8.3.240.0140.00617.40
8.3.230.0130.00716.71
8.3.220.0080.01018.98
8.3.210.0100.00616.59
8.3.200.0110.00416.71
8.3.190.0030.00617.26
8.3.180.0080.01018.85
8.3.170.0060.01220.62
8.3.160.0150.00316.99
8.3.150.0110.00717.09
8.3.140.0030.01416.68
8.3.130.0060.00318.48
8.3.120.0040.00419.09
8.3.110.0090.00020.94
8.3.100.0080.00016.78
8.3.90.0180.00026.77
8.3.80.0000.01016.50
8.3.70.0090.00616.63
8.3.60.0100.00718.56
8.3.50.0080.00818.42
8.3.40.0150.00620.14
8.3.30.0030.01018.67
8.3.20.0000.00724.18
8.3.10.0050.00324.66
8.3.00.0080.00026.16
8.2.290.0070.00320.23
8.2.280.0100.00918.21
8.2.270.0110.00719.05
8.2.260.0060.00317.11
8.2.250.0050.00318.52
8.2.240.0000.00918.72
8.2.230.0000.00922.58
8.2.220.0040.00424.06
8.2.210.0080.00026.77
8.2.200.0000.00818.66
8.2.190.0100.00716.58
8.2.180.0100.00325.92
8.2.170.0070.00718.89
8.2.160.0100.00322.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00726.16
8.2.110.0000.00822.25
8.2.100.0060.00617.84
8.2.90.0040.00417.97
8.2.80.0000.00819.02
8.2.70.0080.00017.75
8.2.60.0070.00017.93
8.2.50.0050.00318.07
8.2.40.0060.00318.22
8.2.30.0040.00418.14
8.2.20.0000.00720.72
8.2.10.0040.00418.01
8.2.00.0080.00019.18
8.1.330.0080.00822.14
8.1.320.0130.00716.02
8.1.310.0120.00318.25
8.1.300.0030.00617.97
8.1.290.0110.00030.84
8.1.280.0040.01125.92
8.1.270.0000.00924.66
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00622.16
8.1.230.0040.00720.91
8.1.220.0000.00917.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0050.00317.10
8.1.180.0000.00818.10
8.1.170.0000.00818.55
8.1.160.0070.00018.89
8.1.150.0040.00418.67
8.1.140.0000.00717.32
8.1.130.0040.00417.31
8.1.120.0040.00417.47
8.1.110.0050.00317.44
8.1.100.0020.00617.45
8.1.90.0060.00217.46
8.1.80.0020.00517.49
8.1.70.0010.00717.43
8.1.60.0020.00617.54
8.1.50.0020.00517.45
8.1.40.0010.00617.49
8.1.30.0020.00517.54
8.1.20.0020.00617.54
8.1.10.0030.00617.51
8.1.00.0030.00517.49
8.0.300.0000.00820.05
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0070.00017.23
8.0.260.0020.00516.95
8.0.250.0040.00316.95
8.0.240.0000.00716.95
8.0.230.0020.00616.95
8.0.220.0040.00416.95
8.0.210.0030.00416.95
8.0.200.0020.00516.95
8.0.190.0010.00616.95
8.0.180.0020.00616.95
8.0.170.0020.00516.95
8.0.160.0020.00516.95
8.0.150.0030.00316.95
8.0.140.0020.00516.95
8.0.130.0030.00416.95
8.0.120.0030.00416.95
8.0.110.0030.00516.95
8.0.100.0050.00316.95
8.0.90.0020.00516.95
8.0.80.0030.00416.95
8.0.70.0000.00817.15
8.0.60.0030.00516.95
8.0.50.0020.00516.95
8.0.30.0020.00516.95
8.0.20.0030.00316.95
8.0.10.0050.00316.95

preferences:
28.55 ms | 403 KiB | 5 Q