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'; $x[] = 'Test2'; 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.70.0190.00318.56
8.3.60.0060.01616.38
8.3.50.0070.01121.09
8.3.40.0090.00918.97
8.3.30.0070.00718.67
8.3.20.0060.00321.77
8.3.10.0070.00021.96
8.3.00.0070.00023.36
8.2.180.0070.00717.00
8.2.170.0040.01822.96
8.2.160.0030.01020.38
8.2.150.0040.00425.66
8.2.140.0060.00324.66
8.2.130.0000.00820.86
8.2.120.0040.00426.35
8.2.110.0050.00521.00
8.2.100.0090.00318.05
8.2.90.0000.00819.30
8.2.80.0030.00617.97
8.2.70.0060.00317.75
8.2.60.0090.00018.05
8.2.50.0040.00418.09
8.2.40.0000.01020.49
8.2.30.0070.00019.51
8.2.20.0040.00417.82
8.2.10.0030.00518.20
8.2.00.0040.00418.12
8.1.280.0150.00625.92
8.1.270.0090.00622.14
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0060.00322.56
8.1.230.0080.00417.83
8.1.220.0000.00817.78
8.1.210.0000.00818.77
8.1.200.0110.00017.38
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0050.00220.84
8.1.150.0000.00818.89
8.1.140.0030.00619.49
8.1.130.0070.00017.72
8.1.120.0070.00017.36
8.1.110.0000.00717.48
8.1.100.0070.00017.46
8.1.90.0000.00717.48
8.1.80.0000.00717.50
8.1.70.0040.00417.48
8.1.60.0080.00017.61
8.1.50.0030.00517.58
8.1.40.0060.00317.48
8.1.30.0030.00517.63
8.1.20.0040.00417.60
8.1.10.0040.00417.48
8.1.00.0000.00817.52
8.0.300.0020.00518.77
8.0.290.0040.00416.75
8.0.280.0040.00418.35
8.0.270.0050.00217.11
8.0.260.0040.00417.19
8.0.250.0000.00816.95
8.0.240.0000.00716.85
8.0.230.0000.00716.95
8.0.220.0070.00316.87
8.0.210.0030.00316.77
8.0.200.0000.00617.00
8.0.190.0000.00717.08
8.0.180.0030.00616.97
8.0.170.0040.00417.04
8.0.160.0040.00416.86
8.0.150.0000.00916.82
8.0.140.0040.00416.88
8.0.130.0060.00013.38
8.0.120.0070.00016.93
8.0.110.0070.00016.82
8.0.100.0040.00416.99
8.0.90.0000.00717.01
8.0.80.0120.00316.93
8.0.70.0040.00416.74
8.0.60.0070.00016.79
8.0.50.0040.00416.88
8.0.30.0080.00917.11
8.0.20.0130.01417.40
8.0.10.0000.00817.15
8.0.00.0140.00516.85
7.4.330.0000.00516.74
7.4.320.0000.00616.62
7.4.300.0040.00416.61
7.4.290.0000.00716.58
7.4.280.0080.00016.59
7.4.270.0000.00716.50
7.4.260.0030.00316.36
7.4.250.0030.00516.59
7.4.240.0030.00316.61
7.4.230.0030.00316.53
7.4.220.0130.00616.58
7.4.210.0060.01016.56
7.4.200.0030.00316.41
7.4.160.0090.00616.66
7.4.150.0160.00917.40
7.4.140.0130.00617.86
7.4.130.0090.01016.42
7.4.120.0090.00916.54
7.4.110.0050.01116.67
7.4.100.0090.01216.54
7.4.90.0120.00616.39
7.4.80.0060.00919.39
7.4.70.0090.00616.37
7.4.60.0110.00716.46
7.4.50.0030.01316.45
7.4.40.0170.00316.51
7.4.30.0100.01016.58
7.4.00.0050.01015.05
7.3.330.0040.00413.09
7.3.320.0000.00513.38
7.3.310.0070.00016.13
7.3.300.0070.00016.30
7.3.290.0070.00016.20
7.3.280.0090.00816.28
7.3.270.0110.01117.40
7.3.260.0060.01216.62
7.3.250.0150.00416.37
7.3.240.0130.00716.55
7.3.230.0070.01016.39
7.3.210.0100.00716.34
7.3.200.0150.00919.39
7.3.190.0100.00716.64
7.3.180.0090.00616.59
7.3.170.0150.00416.59
7.3.160.0170.00016.55
7.3.120.0030.01414.69
7.3.110.0060.01214.68
7.3.100.0070.00415.02
7.3.90.0130.00714.89
7.3.80.0070.00414.52
7.3.70.0040.01114.66
7.3.60.0110.00414.80
7.3.50.0030.00914.67
7.3.40.0080.00314.51
7.3.30.0030.01014.86
7.3.20.0000.01516.38
7.3.10.0090.00616.45
7.3.00.0070.01016.74
7.2.330.0110.00716.58
7.2.320.0120.01316.71
7.2.310.0110.00716.60
7.2.300.0040.01416.54
7.2.290.0100.00716.60
7.2.250.0090.00914.97
7.2.240.0060.01214.88
7.2.230.0040.01414.63
7.2.220.0030.00715.07
7.2.210.0120.00315.19
7.2.200.0070.00714.80
7.2.190.0000.01414.79
7.2.180.0060.00614.67
7.2.170.0030.01214.99
7.2.60.0040.01116.54
7.2.00.0060.00319.42
7.1.330.0030.01015.73
7.1.320.0030.01215.46
7.1.310.0080.00515.79
7.1.300.0070.00415.79
7.1.290.0090.00615.46
7.1.280.0070.00715.69
7.1.270.0060.00815.76
7.1.260.0100.00315.70
7.1.200.0000.01515.71
7.1.100.0070.00718.00
7.1.70.0110.01116.76
7.1.60.0140.01019.40
7.1.50.0030.01716.80
7.1.00.0030.07722.29
7.0.200.0320.00414.72
7.0.60.0330.05319.98
7.0.50.0070.04017.98
7.0.40.0100.07320.11
7.0.30.0130.04320.02
7.0.20.0270.07720.23
7.0.10.0100.08320.09
7.0.00.0200.05020.05
5.6.280.0100.02721.10
5.6.210.0070.07020.57
5.6.200.0070.08018.20
5.6.190.0070.08320.34
5.6.180.0300.07020.47
5.6.170.0430.07020.57
5.6.160.0070.08720.46
5.6.150.0170.07318.23
5.6.140.0070.08018.27
5.6.130.0070.08718.28
5.6.120.0000.04720.97
5.6.110.0170.07321.00
5.6.100.0100.07721.09
5.6.90.0170.07320.96
5.6.80.0170.07020.51
5.5.350.0200.07020.39
5.5.340.0000.06718.05
5.5.330.0000.04720.58
5.5.320.0530.06720.25
5.5.310.0170.05320.41
5.5.300.0030.03718.05
5.5.290.0130.07017.95
5.5.280.0070.08020.70
5.5.270.0170.08020.78
5.5.260.0030.09020.76
5.5.250.0100.07720.71
5.5.240.0130.08020.27

preferences:
63.02 ms | 401 KiB | 5 Q