3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( array( 'name' => 'Foo', 'children' => array( 'B', 'A', ), ), array( 'name' => 'Bar', 'children' => array( 'Z', 'X', 'Y', ), ), ); usort($array, function (&$x, &$y) { sort($x['children']); sort($y['children']); $x[] = 'Test'; return strcasecmp($x['name'], $y['name']); }); var_dump($array);

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.0140.00716.50
8.3.50.0170.00221.03
8.3.40.0120.00318.58
8.3.30.0070.00718.63
8.3.20.0090.00020.25
8.3.10.0080.00021.91
8.3.00.0090.00023.27
8.2.180.0110.00416.63
8.2.170.0170.00322.96
8.2.160.0070.00720.38
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.95
8.2.110.0070.00319.32
8.2.100.0120.00017.93
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0020.00517.93
8.2.50.0000.00818.09
8.2.40.0040.00422.15
8.2.30.0070.00019.42
8.2.20.0040.00417.80
8.2.10.0000.00818.02
8.2.00.0050.00318.10
8.1.280.0100.01025.92
8.1.270.0160.00322.03
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00923.96
8.1.230.0110.00017.89
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0060.00318.52
8.1.160.0040.00420.65
8.1.150.0000.00918.90
8.1.140.0040.00419.63
8.1.130.0030.00317.71
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0000.00717.36
8.1.90.0030.00517.41
8.1.80.0070.00017.47
8.1.70.0030.00517.46
8.1.60.0000.00917.53
8.1.50.0080.00017.41
8.1.40.0050.00317.53
8.1.30.0030.00517.63
8.1.20.0040.00417.64
8.1.10.0040.00417.50
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00718.42
8.0.270.0000.00717.20
8.0.260.0060.00317.20
8.0.250.0050.00516.86
8.0.240.0040.00416.89
8.0.230.0030.00316.85
8.0.220.0070.00316.92
8.0.210.0030.00316.82
8.0.200.0000.00717.04
8.0.190.0050.00217.05
8.0.180.0110.00017.02
8.0.170.0000.00816.86
8.0.160.0070.00017.03
8.0.150.0040.00316.92
8.0.140.0040.00416.93
8.0.130.0000.00613.41
8.0.120.0040.00416.89
8.0.110.0000.00716.86
8.0.100.0040.00416.83
8.0.90.0000.00717.00
8.0.80.0090.00616.95
8.0.70.0040.00416.93
8.0.60.0030.00516.94
8.0.50.0000.00716.96
8.0.30.0070.01216.97
8.0.20.0120.01617.40
8.0.10.0040.00416.94
8.0.00.0120.00816.83
7.4.330.0000.00616.84
7.4.320.0000.00616.53
7.4.300.0000.00616.49
7.4.290.0030.00516.64
7.4.280.0070.00016.48
7.4.270.0000.00716.67
7.4.260.0030.00316.48
7.4.250.0050.00216.42
7.4.240.0000.00716.59
7.4.230.0000.00716.70
7.4.220.0140.00416.50
7.4.210.0120.00616.53
7.4.200.0000.00716.58
7.4.160.0080.00816.58
7.4.150.0200.01017.40
7.4.140.0120.00717.86
7.4.130.0070.01016.50
7.4.120.0100.00816.51
7.4.110.0000.01716.54
7.4.100.0100.00816.69
7.4.90.0170.00716.64
7.4.80.0190.01319.39
7.4.70.0130.00616.62
7.4.60.0140.00616.36
7.4.50.0090.00616.50
7.4.40.0120.00616.19
7.4.30.0060.01216.53
7.4.00.0070.01015.17
7.3.330.0000.00913.19
7.3.320.0000.00513.17
7.3.310.0030.00316.12
7.3.300.0000.00716.29
7.3.290.0030.00316.35
7.3.280.0100.00716.29
7.3.270.0090.00917.40
7.3.260.0090.01216.22
7.3.250.0080.00916.33
7.3.240.0040.01416.36
7.3.230.0100.00716.63
7.3.210.0090.00916.40
7.3.200.0000.01719.39
7.3.190.0080.00816.44
7.3.180.0100.00516.35
7.3.170.0060.01216.53
7.3.160.0120.00416.65
7.3.10.0140.00016.53
7.3.00.0100.00716.82
7.2.330.0100.01416.48
7.2.320.0200.00416.63
7.2.310.0090.00916.72
7.2.300.0090.00816.50
7.2.290.0180.00016.70
7.2.130.0100.01316.63
7.2.120.0140.00716.92
7.2.110.0110.00716.96
7.2.100.0030.01016.91
7.2.90.0100.00816.59
7.2.80.0000.02216.94
7.2.70.0160.00816.67
7.2.60.0080.01116.74
7.2.50.0140.01016.71
7.2.40.0110.00816.88
7.2.30.0110.01116.92
7.2.20.0120.01216.66
7.2.10.0160.00316.45
7.2.00.0100.00417.93
7.1.250.0090.00915.77
7.1.200.0030.01215.75
7.1.100.0000.00818.16
7.1.70.0120.00317.14
7.1.60.0100.01419.40
7.1.50.0030.01917.05
7.1.00.0000.08022.39
7.0.200.0270.00814.85
7.0.60.0230.09020.02
7.0.50.0130.03717.86
7.0.40.0100.05720.25
7.0.30.0130.04320.08
7.0.20.0270.08720.27
7.0.10.0100.08320.05
7.0.00.0100.08720.06
5.6.280.0000.03721.04
5.6.210.0070.08720.57
5.6.200.0070.06318.29
5.6.190.0070.06720.64
5.6.180.0330.07320.50
5.6.170.0330.05020.52
5.6.160.0030.08020.71
5.6.150.0070.07718.21
5.6.140.0070.04018.28
5.6.130.0130.07018.18
5.6.120.0000.04720.97
5.6.110.0130.05720.99
5.6.100.0100.05720.97
5.6.90.0130.08720.96
5.6.80.0070.08020.36
5.5.350.0230.05320.43
5.5.340.0070.07717.97
5.5.330.0070.06320.21
5.5.320.0470.05320.25
5.5.310.0300.06720.26
5.5.300.0000.04018.03
5.5.290.0070.08717.97
5.5.280.0100.07720.73
5.5.270.0070.04320.73
5.5.260.0000.09020.77
5.5.250.0070.06720.78
5.5.240.0200.07720.26

preferences:
44.08 ms | 401 KiB | 5 Q