3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 125 => '3110 - with a string', 128 => '3009 - keep a string', 126 => '3111 - a string', 121 => '3114 - be a string', 122 => '3113 - last string', ]; function cmp($a, $b) { return strcmp(trim(explode('-',$a)[1]) ,trim(explode('-',$b)[1])); } usort($array, "cmp"); print_r($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.4.140.0130.00817.67
8.4.130.0040.00517.73
8.4.120.0070.00320.46
8.4.110.0100.01020.31
8.4.100.0100.01017.86
8.4.90.0060.00318.59
8.4.80.0030.00518.57
8.4.70.0040.00417.99
8.4.60.0100.01018.62
8.4.50.0120.01021.98
8.4.40.0100.01019.82
8.4.30.0070.01118.69
8.4.20.0110.00017.88
8.4.10.0160.00322.01
8.3.270.0150.00516.80
8.3.260.0100.01116.48
8.3.250.0080.01118.98
8.3.240.0100.00916.48
8.3.230.0110.00916.47
8.3.220.0090.00519.00
8.3.210.0110.00416.57
8.3.200.0070.00216.61
8.3.190.0050.00518.84
8.3.180.0110.00818.79
8.3.170.0100.00720.58
8.3.160.0130.00716.96
8.3.150.0130.00617.17
8.3.140.0080.00016.48
8.3.130.0060.00318.16
8.3.120.0030.00620.48
8.3.110.0120.00820.94
8.3.100.0090.00616.53
8.3.90.0000.00826.77
8.3.80.0030.00616.50
8.3.70.0140.00416.58
8.3.60.0070.01416.50
8.3.50.0100.01019.72
8.3.40.0130.00020.48
8.3.30.0120.00618.69
8.3.20.0000.00724.18
8.3.10.0090.00024.66
8.3.00.0030.00726.16
8.2.290.0030.00520.80
8.2.280.0090.01118.57
8.2.270.0040.00417.28
8.2.260.0080.00016.65
8.2.250.0000.00919.17
8.2.240.0050.00318.84
8.2.230.0090.00022.58
8.2.220.0040.00424.06
8.2.210.0060.00826.77
8.2.200.0060.00316.63
8.2.190.0090.00916.75
8.2.180.0040.01125.92
8.2.170.0170.00318.92
8.2.160.0070.01122.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0030.00719.17
8.2.100.0080.00418.03
8.2.90.0040.00419.11
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0080.00017.36
8.2.50.0000.00917.98
8.2.40.0050.00317.97
8.2.30.0090.00017.96
8.2.20.0070.00019.27
8.2.10.0040.00418.13
8.2.00.0100.00019.28
8.1.330.0110.00721.98
8.1.320.0100.01116.16
8.1.310.0030.00616.86
8.1.300.0040.00718.00
8.1.290.0060.00330.84
8.1.280.0130.00725.92
8.1.270.0050.00324.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.54
8.1.230.0000.01117.96
8.1.220.0080.00017.76
8.1.210.0040.00418.77
8.1.200.0000.00917.22
8.1.190.0000.00817.23
8.1.180.0030.00618.10
8.1.170.0060.00317.62
8.1.160.0000.00718.83
8.1.150.0040.00418.58
8.1.140.0040.00417.36
8.1.130.0030.00317.30
8.1.120.0040.00317.43
8.1.110.0030.00617.37
8.1.100.0030.00517.38
8.1.90.0100.00517.43
8.1.80.0080.00817.36
8.1.70.0160.00017.27
8.1.60.0180.00017.38
8.1.50.0060.01117.33
8.1.40.0120.00617.30
8.1.30.0110.00817.58
8.1.20.0150.00217.46
8.1.10.0120.00617.56
8.1.00.0070.01017.44
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0000.00716.75
8.0.260.0030.00316.77
8.0.250.0030.00316.89
8.0.240.0030.00316.88
8.0.230.0080.00816.75
8.0.220.0050.01016.81
8.0.210.0110.00416.81
8.0.200.0080.00816.91
8.0.190.0050.00916.85
8.0.180.0000.01316.70
8.0.170.0120.00216.70
8.0.160.0060.00916.90
8.0.150.0070.00716.74
8.0.140.0110.00416.78
8.0.130.0100.00416.63
8.0.120.0120.00316.80
8.0.110.0110.00516.81
8.0.100.0050.01016.70
8.0.90.0070.00716.80
8.0.80.0150.00016.76
8.0.70.0090.00616.59
8.0.60.0160.00016.80
8.0.50.0120.00416.75
8.0.30.0080.00816.85
8.0.20.0160.00016.74
8.0.10.0110.00416.85
7.4.330.0020.00215.55
7.4.320.0030.00316.55
7.4.300.0040.00616.52
7.4.290.0130.00316.33
7.4.280.0090.00616.41
7.4.270.0130.00316.39
7.4.260.0130.00316.54
7.4.250.0150.00016.52
7.4.240.0140.00016.40
7.4.230.0120.00316.54
7.4.220.0110.00216.54
7.4.210.0060.00016.51
7.4.200.0110.00016.48
7.4.190.0090.00616.57
7.4.180.0060.00016.45
7.4.160.0100.00316.51
7.4.150.0090.00316.38
7.4.140.0100.00016.48
7.4.130.0030.00316.46
7.4.120.0060.00016.39
7.4.110.0040.00416.32
7.4.100.0030.00316.30
7.4.90.0040.00416.47
7.4.80.0040.00416.21
7.4.70.0050.00516.25
7.4.60.0070.00316.48
7.4.50.0020.00616.14
7.4.40.0040.00416.17
7.4.30.0030.00516.34
7.4.20.0100.00016.27
7.4.10.0030.00516.42
7.4.00.0040.00416.39

preferences:
99.62 ms | 403 KiB | 5 Q