3v4l.org

run code in 300+ PHP versions simultaneously
<?php $indexes = [ 26 => ["namespace" => "X\\Y\\Zed"], 9 => ["namespace" => "A\\B\\See"], 3 => ["namespace" => "A\\B\\Bee"], 38 => ["namespace" => "A\\B\\C\\Dee"], 51 => ["namespace" => "X\\Wye"], 16 => ["namespace" => "A\\Sea"], 12 => ["namespace" => "A\\Bees"], 31 => ["namespace" => "M"], ]; uasort( $indexes, function($a, $b) { $aParts = explode('\\', $a['namespace']); $bParts = explode('\\', $b['namespace']); $aCount = count($aParts); $bCount = count($bParts); return count($bParts) <=> count($aParts) ?: (array_pad($aParts, $bCount, '~') <=> array_pad($bParts, $aCount, '~')); } ); var_export($indexes);

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.130.0130.00818.67
8.4.120.0120.00923.87
8.4.110.0120.00820.41
8.4.100.0120.00618.84
8.4.90.0110.00820.91
8.4.80.0120.00818.88
8.4.70.0080.00820.69
8.4.60.0090.01018.73
8.4.50.0060.00319.56
8.4.40.0090.01017.67
8.4.30.0100.01020.27
8.4.20.0140.00717.66
8.4.10.0030.00621.30
8.3.250.0120.00817.00
8.3.240.0090.01017.20
8.3.230.0120.00716.50
8.3.220.0080.00818.95
8.3.210.0060.00216.49
8.3.200.0060.00216.61
8.3.190.0110.01217.27
8.3.180.0090.00316.45
8.3.170.0110.00719.01
8.3.160.0080.00018.28
8.3.150.0070.00718.97
8.3.140.0050.00318.52
8.3.130.0030.00518.43
8.3.120.0040.01519.10
8.3.110.0040.00416.78
8.3.100.0050.00318.53
8.3.90.0090.00616.50
8.3.80.0090.00019.36
8.3.70.0090.00618.43
8.3.60.0040.01118.18
8.3.50.0070.01224.49
8.3.40.0100.01021.90
8.3.30.0070.00718.80
8.3.20.0000.00724.18
8.3.10.0060.00324.66
8.3.00.0080.00626.16
8.2.290.0040.00520.47
8.2.280.0080.00819.92
8.2.270.0150.00318.92
8.2.260.0100.01019.84
8.2.250.0050.00316.67
8.2.240.0070.00316.44
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0000.00826.77
8.2.200.0070.00318.88
8.2.190.0070.00716.72
8.2.180.0100.01025.92
8.2.170.0070.00719.04
8.2.160.0130.00622.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0070.00026.35
8.2.110.0030.00620.49
8.2.100.0120.00018.03
8.2.90.0000.00817.84
8.2.80.0050.00317.97
8.2.70.0060.00317.50
8.2.60.0060.00317.93
8.2.50.0000.00818.07
8.2.40.0080.00018.16
8.2.30.0080.00018.08
8.2.20.0050.00318.16
8.2.10.0020.00519.24
8.2.00.0070.00019.21
8.1.330.0070.00322.20
8.1.320.0120.00617.73
8.1.310.0070.01018.70
8.1.300.0110.00016.37
8.1.290.0060.00330.84
8.1.280.0100.00325.92
8.1.270.0000.00823.99
8.1.260.0000.00828.09
8.1.250.0000.00828.09
8.1.240.0110.00023.91
8.1.230.0110.00020.88
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00717.48
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00918.58
8.1.160.0000.00718.83
8.1.150.0000.00718.83
8.1.140.0040.00418.91
8.1.130.0050.00320.08
8.1.120.0040.00417.41
8.1.110.0050.00217.52
8.1.100.0050.00217.43
8.1.90.0000.00717.37
8.1.80.0030.00617.38
8.1.70.0070.00017.39
8.1.60.0090.00017.60
8.1.50.0040.00417.43
8.1.40.0000.00817.43
8.1.30.0000.00817.57
8.1.20.0040.00417.61
8.1.10.0020.00517.62
8.1.00.0050.00317.39
8.0.300.0000.00720.07
8.0.290.0000.01116.75
8.0.280.0030.00618.31
8.0.270.0030.00617.95
8.0.260.0040.00418.59
8.0.250.0050.00316.82
8.0.240.0040.00416.99
8.0.230.0030.00316.87
8.0.220.0060.00316.80
8.0.210.0000.00716.93
8.0.200.0070.00016.93
8.0.190.0080.00016.86
8.0.180.0070.00016.94
8.0.170.0030.00516.94
8.0.160.0000.00816.93
8.0.150.0070.00316.80
8.0.140.0040.00416.88
8.0.130.0000.00613.35
8.0.120.0080.00016.87
8.0.110.0000.00816.74
8.0.100.0070.00016.97
8.0.90.0040.00416.71
8.0.80.0070.00816.86
8.0.70.0040.00416.96
8.0.60.0040.00416.84
8.0.50.0040.00416.85
8.0.30.0090.00917.02
8.0.20.0120.01116.96
8.0.10.0050.00216.97
8.0.00.0080.00816.68
7.4.330.0060.00015.55
7.4.320.0070.00016.59
7.4.300.0060.00016.38
7.4.290.0040.00416.52
7.4.280.0040.00416.42
7.4.270.0000.00816.63
7.4.260.0040.00413.24
7.4.250.0070.00016.45
7.4.240.0000.00716.64
7.4.230.0040.00416.69
7.4.220.0040.00416.53
7.4.210.0070.00816.59
7.4.200.0070.00016.60
7.4.130.0100.00716.38
7.4.120.0150.00316.35
7.4.110.0100.00716.36
7.4.100.0120.00416.34
7.4.90.0090.00916.43
7.4.80.0170.00016.44
7.4.70.0210.00316.48
7.4.60.0210.00316.52
7.4.50.0210.00316.54
7.4.40.0070.01016.38
7.4.30.0100.00716.60
7.4.20.0130.00316.38
7.4.10.0060.01216.35
7.4.00.0040.01216.54
7.3.330.0040.00216.22
7.3.320.0060.00013.19
7.3.310.0070.00016.48
7.3.300.0060.00016.43
7.3.290.0120.00816.28
7.3.260.0140.01116.45
7.3.250.0160.00016.30
7.3.240.0140.00316.54
7.3.230.0120.00416.33
7.3.220.0030.01416.38
7.3.210.0130.00316.33
7.3.200.0160.00616.35
7.3.190.0090.00916.60
7.3.180.0090.01616.58
7.3.170.0090.01516.34
7.3.160.0170.00716.51
7.3.150.0100.00616.40
7.3.140.0140.00316.32
7.3.130.0060.01116.41
7.3.120.0090.00916.32
7.3.110.0140.00316.36
7.3.100.0140.00316.30
7.3.90.0060.01016.12
7.3.80.0120.00616.34
7.3.70.0070.01016.39
7.3.60.0160.00016.44
7.3.50.0110.00816.19
7.3.40.0090.00916.19
7.3.30.0140.00416.45
7.3.20.0030.01416.20
7.3.10.0080.00916.41
7.3.00.0060.01516.29

preferences:
159.57 ms | 403 KiB | 5 Q