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']); 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.0110.00416.75
8.3.50.0080.00816.34
8.3.40.0060.01219.02
8.3.30.0070.01118.57
8.3.20.0030.00620.30
8.3.10.0040.00421.76
8.3.00.0070.00021.91
8.2.180.0120.00916.63
8.2.170.0110.00422.96
8.2.160.0040.01120.32
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0070.00320.82
8.2.120.0040.00426.35
8.2.110.0030.00619.27
8.2.100.0060.00617.93
8.2.90.0000.00819.35
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0060.00318.05
8.2.50.0040.00418.09
8.2.40.0060.00320.48
8.2.30.0070.00019.52
8.2.20.0020.00517.72
8.2.10.0070.00018.22
8.2.00.0040.00418.13
8.1.280.0040.01125.92
8.1.270.0040.00422.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.52
8.1.230.0080.00317.83
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00817.25
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0000.00720.70
8.1.150.0070.00018.88
8.1.140.0080.00019.59
8.1.130.0030.00317.77
8.1.120.0000.00717.37
8.1.110.0000.00717.38
8.1.100.0050.00317.48
8.1.90.0070.00017.52
8.1.80.0040.00417.40
8.1.70.0030.00317.44
8.1.60.0000.00917.58
8.1.50.0050.00317.50
8.1.40.0080.00017.51
8.1.30.0040.00417.56
8.1.20.0040.00417.48
8.1.10.0070.00017.57
8.1.00.0030.00617.48
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0000.00818.39
8.0.270.0030.00317.21
8.0.260.0030.00317.19
8.0.250.0000.00716.93
8.0.240.0000.00816.85
8.0.230.0070.00016.97
8.0.220.0080.00016.88
8.0.210.0000.00716.88
8.0.200.0000.00616.88
8.0.190.0030.00516.91
8.0.180.0040.00417.07
8.0.170.0000.00816.99
8.0.160.0050.00217.03
8.0.150.0000.00716.79
8.0.140.0080.00016.84
8.0.130.0000.00613.44
8.0.120.0000.00816.85
8.0.110.0050.00316.94
8.0.100.0000.00716.94
8.0.90.0000.00916.85
8.0.80.0040.01316.97
8.0.70.0040.00416.99
8.0.60.0040.00416.78
8.0.50.0070.00016.98
8.0.30.0090.01016.90
8.0.20.0110.00717.40
8.0.10.0040.00416.97
8.0.00.0100.00716.72
7.4.330.0020.00216.89
7.4.320.0070.00016.56
7.4.300.0000.00816.60
7.4.290.0000.00716.64
7.4.280.0040.00416.57
7.4.270.0030.00316.62
7.4.260.0030.00316.58
7.4.250.0040.00416.46
7.4.240.0040.00416.65
7.4.230.0070.00016.69
7.4.220.0090.00916.61
7.4.210.0090.00916.62
7.4.200.0000.00716.51
7.4.160.0090.00616.54
7.4.150.0110.00717.40
7.4.140.0090.01317.86
7.4.130.0140.00516.53
7.4.120.0110.01016.45
7.4.110.0100.00716.67
7.4.100.0070.01016.48
7.4.90.0120.00916.41
7.4.80.0110.01119.39
7.4.70.0040.01316.40
7.4.60.0120.00916.56
7.4.50.0070.00716.44
7.4.40.0130.00816.32
7.4.30.0160.00716.36
7.4.00.0070.00914.87
7.3.330.0060.00013.28
7.3.320.0000.00513.31
7.3.310.0070.00016.42
7.3.300.0000.00616.29
7.3.290.0070.00016.28
7.3.280.0080.00916.29
7.3.270.0070.01017.40
7.3.260.0090.00916.57
7.3.250.0150.00716.33
7.3.240.0130.00516.52
7.3.230.0080.01016.39
7.3.210.0090.00916.31
7.3.200.0060.01116.43
7.3.190.0120.00416.42
7.3.180.0100.00616.47
7.3.170.0070.01016.40
7.3.160.0080.01116.29
7.3.120.0070.01014.69
7.3.110.0100.00614.65
7.3.100.0090.00914.51
7.3.90.0080.00414.76
7.3.80.0060.00914.92
7.3.70.0030.01014.91
7.3.60.0000.00914.78
7.3.50.0080.00814.79
7.3.40.0060.00814.91
7.3.30.0060.00614.62
7.3.20.0060.00616.55
7.3.10.0040.01116.66
7.3.00.0040.01116.61
7.2.330.0180.00016.57
7.2.320.0090.00816.36
7.2.310.0090.00916.53
7.2.300.0100.00716.30
7.2.290.0140.00716.44
7.2.250.0040.01514.87
7.2.240.0030.01015.10
7.2.230.0040.01215.00
7.2.220.0120.00315.05
7.2.210.0060.00314.82
7.2.200.0000.01515.04
7.2.190.0030.00714.75
7.2.180.0120.00314.74
7.2.170.0070.01014.75
7.2.160.0000.01114.62
7.2.150.0100.00716.64
7.2.140.0060.00916.81
7.2.130.0110.00416.78
7.2.120.0120.00016.83
7.2.110.0040.01116.68
7.2.100.0070.00716.93
7.2.90.0040.00716.94
7.2.80.0000.01316.99
7.2.70.0070.00716.75
7.2.60.0090.00616.74
7.2.50.0120.00716.41
7.2.40.0030.01416.93
7.2.30.0000.01016.81
7.2.20.0060.00916.66
7.2.10.0110.00716.59
7.2.00.0050.01318.20
7.1.330.0110.00715.91
7.1.320.0040.01115.66
7.1.310.0110.00315.64
7.1.300.0060.00315.51
7.1.290.0030.01015.81
7.1.280.0060.01015.82
7.1.270.0110.00015.70
7.1.260.0000.01515.70
7.1.250.0030.00515.63
7.1.240.0100.00015.81
7.1.230.0070.00715.93
7.1.220.0100.00615.86
7.1.210.0070.01015.75
7.1.200.0060.00615.86
7.1.190.0040.01215.68
7.1.180.0060.00315.86
7.1.170.0040.00715.81
7.1.160.0100.00315.62
7.1.150.0030.00715.77
7.1.140.0090.00315.87
7.1.130.0100.01015.73
7.1.120.0090.00615.98
7.1.110.0080.00415.76
7.1.100.0050.01216.95
7.1.90.0040.01815.68
7.1.80.0040.01515.91
7.1.70.0060.01016.33
7.1.60.0070.00917.70
7.1.50.0070.01016.28
7.1.40.0070.00715.47
7.1.30.0060.00315.86
7.1.20.0070.00715.72
7.1.10.0000.00915.76
7.1.00.0050.04219.03
7.0.330.0090.00015.03
7.0.320.0100.00715.24
7.0.310.0090.00615.08
7.0.300.0040.01215.28
7.0.290.0100.00315.18
7.0.280.0030.00915.26
7.0.270.0030.01315.28
7.0.260.0000.01615.34
7.0.250.0080.00815.33
7.0.240.0060.00915.36
7.0.230.0180.00015.27
7.0.220.0040.01214.98
7.0.210.0040.00715.43
7.0.200.0200.00714.96
7.0.190.0030.00915.50
7.0.180.0070.00415.34
7.0.170.0070.00715.20
7.0.160.0030.00915.49
7.0.150.0090.00915.36
7.0.140.0030.00915.05
7.0.130.0050.00315.21
7.0.120.0060.00615.60
7.0.110.0100.00315.20
7.0.100.0070.04017.45
7.0.90.0050.03217.70
7.0.80.0080.04117.69
7.0.70.0050.04517.48
7.0.60.0100.02517.71
7.0.50.0050.04717.86
7.0.40.0120.03916.80
7.0.30.0080.04116.75
7.0.20.0070.04516.78
7.0.10.0050.03016.68
7.0.00.0070.04516.82
5.6.400.0040.00414.18
5.6.390.0030.00914.21
5.6.380.0060.00914.47
5.6.370.0040.01113.66
5.6.360.0030.01014.60
5.6.350.0090.00014.01
5.6.340.0070.00714.53
5.6.330.0060.00914.37
5.6.320.0040.00414.42
5.6.310.0040.01213.91
5.6.300.0030.01414.02
5.6.290.0000.01314.44
5.6.280.0050.02317.69
5.6.270.0030.01014.11
5.6.260.0100.00313.99
5.6.250.0090.04117.40
5.6.240.0120.03717.55
5.6.230.0030.04717.53
5.6.220.0070.04317.41
5.6.210.0090.04017.52
5.6.200.0030.03517.73
5.6.190.0070.04517.74
5.6.180.0080.04217.69
5.6.170.0040.05317.59
5.6.160.0060.04617.77
5.6.150.0040.04817.51
5.6.140.0090.03917.69
5.6.130.0090.03617.63
5.6.120.0140.03717.77
5.6.110.0090.04417.69
5.6.100.0070.04517.55
5.6.90.0030.04417.66
5.6.80.0090.04217.39
5.6.70.0090.03717.31
5.6.60.0070.04517.32
5.6.50.0090.03917.22
5.6.40.0080.03317.31
5.6.30.0140.03617.27
5.6.20.0080.03817.35
5.6.10.0080.04517.25
5.6.00.0090.03717.29
5.5.380.0090.03817.30
5.5.370.0110.04117.50
5.5.360.0030.03617.45
5.5.350.0030.03317.43
5.5.340.0080.04417.78
5.5.330.0140.03717.52
5.5.320.0070.04317.63
5.5.310.0070.04317.37
5.5.300.0100.03517.58
5.5.290.0060.04417.56
5.5.280.0060.04517.73
5.5.270.0030.04417.59
5.5.260.0020.05117.59
5.5.250.0050.04317.36
5.5.240.0080.04017.21
5.5.230.0030.04617.21
5.5.220.0070.04217.08
5.5.210.0030.04317.24
5.5.200.0040.04417.25
5.5.190.0100.04017.21
5.5.180.0070.04417.16
5.5.170.0100.00614.02
5.5.160.0050.04417.13
5.5.150.0080.03017.24
5.5.140.0030.04017.08
5.5.130.0030.02917.07
5.5.120.0080.02517.32
5.5.110.0070.03017.13
5.5.100.0020.02617.05
5.5.90.0110.03717.07
5.5.80.0040.03917.13
5.5.70.0130.03717.13
5.5.60.0080.04217.15
5.5.50.0120.03717.20
5.5.40.0050.04417.12
5.5.30.0050.04417.29
5.5.20.0030.04217.20
5.5.10.0110.03317.21
5.5.00.0060.02717.08

preferences:
57.37 ms | 400 KiB | 5 Q