3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ " ", // Spaces "?", // Special Character 2, // Integer 3.01, // Float "php", // Lower-case String "pHP", // Camel-case String "Hello", // Title-Case String "123", // String Number true, // Boolean ]; sort($arr, SORT_STRING | SORT_FLAG_CASE); var_dump($arr);

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.20.0090.00918.94
8.4.10.0090.00619.17
8.3.140.0150.00316.46
8.3.130.0080.00018.64
8.3.120.0030.00618.88
8.3.110.0080.00020.94
8.3.100.0030.00618.31
8.3.90.0080.00026.77
8.3.80.0030.00616.63
8.3.70.0160.00616.48
8.3.60.0120.00318.43
8.3.50.0100.00718.41
8.3.40.0090.00618.84
8.3.30.0120.00318.54
8.3.20.0040.00421.77
8.3.10.0030.00619.05
8.3.00.0000.00721.96
8.2.260.0060.01217.15
8.2.250.0080.00018.28
8.2.240.0060.00317.04
8.2.230.0040.00422.58
8.2.220.0000.00824.06
8.2.210.0130.00726.77
8.2.200.0060.00316.63
8.2.190.0060.01216.58
8.2.180.0070.00716.38
8.2.170.0130.00322.96
8.2.160.0100.00718.95
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0030.00519.71
8.2.110.0030.00719.31
8.2.100.0090.00317.66
8.2.90.0030.00517.84
8.2.80.0000.01117.97
8.2.70.0040.00417.80
8.2.60.0070.00018.03
8.2.50.0040.00419.34
8.2.40.0020.00519.40
8.2.30.0000.00720.46
8.2.20.0080.00018.00
8.2.10.0000.00718.77
8.2.00.0040.00419.77
8.1.310.0060.00916.86
8.1.300.0130.00617.87
8.1.290.0040.00430.84
8.1.280.0040.01125.92
8.1.270.0060.00320.74
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.46
8.1.230.0060.00622.70
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0040.00418.86
8.1.150.0030.00518.82
8.1.140.0000.00720.27
8.1.130.0070.00020.31
8.1.120.0040.00417.42
8.1.110.0000.00817.29
8.1.100.0020.00517.41
8.1.90.0050.00217.44
8.1.80.0030.00517.32
8.1.70.0000.00817.42
8.1.60.0050.00217.47
8.1.50.0000.00817.46
8.1.40.0030.00617.46
8.1.30.0030.00617.55
8.1.20.0070.00017.48
8.1.10.0000.00717.37
8.1.00.0000.00717.39
8.0.300.0000.00719.86
8.0.290.0070.00016.75
8.0.280.0040.00418.37
8.0.270.0030.00317.19
8.0.260.0060.00018.38
8.0.250.0070.00016.92
8.0.240.0030.00316.84
8.0.230.0030.00317.00
8.0.220.0000.00716.76
8.0.210.0000.00716.85
8.0.200.0030.00316.72
8.0.190.0000.00916.90
8.0.180.0040.00416.91
8.0.170.0030.00616.85
8.0.160.0020.00516.77
8.0.150.0110.00016.84
8.0.140.0000.00716.68
8.0.130.0060.00313.21
8.0.120.0040.00416.89
8.0.110.0050.00216.69
8.0.100.0000.00716.70
8.0.90.0040.00416.61
8.0.80.0030.01216.72
8.0.70.0030.00516.71
8.0.60.0080.00016.91
8.0.50.0040.00416.70
8.0.30.0140.00716.79
8.0.20.0130.01016.76
8.0.10.0070.00016.97
8.0.00.0100.00716.60
7.4.330.0050.00015.55
7.4.320.0070.00016.42
7.4.300.0030.00316.48
7.4.290.0000.00716.54
7.4.280.0030.00516.50
7.4.270.0070.00316.49
7.4.260.0050.00516.55
7.4.250.0070.00016.47
7.4.240.0070.00016.54
7.4.230.0070.00016.53
7.4.220.0050.00316.60
7.4.210.0060.00916.50
7.4.200.0030.00316.32
7.4.160.0110.01016.44
7.4.140.0130.00717.86
7.4.130.0100.00816.32
7.4.120.0120.00916.28
7.4.110.0060.00916.32
7.4.100.0110.00616.38
7.4.90.0140.00416.54
7.4.80.0070.01619.39
7.4.70.0190.00416.38
7.4.60.0080.00816.42
7.4.50.0070.01116.47
7.4.40.0130.00516.10
7.4.10.0070.01316.39
7.4.00.0060.01115.66
7.3.330.0020.00212.97
7.3.320.0000.00512.98
7.3.310.0000.00716.10
7.3.300.0030.00316.13
7.3.290.0130.00316.18
7.3.280.0030.01216.08
7.3.260.0080.01016.19
7.3.240.0110.00916.24
7.3.230.0060.01116.44
7.3.210.0100.01316.21
7.3.200.0100.01316.14
7.3.190.0040.01216.36
7.3.180.0050.01116.34
7.3.170.0030.01416.36
7.3.160.0070.01016.45
7.3.130.0160.00316.47
7.3.120.0090.00716.20
7.3.110.0070.01116.21
7.3.100.0030.01215.93
7.3.90.0090.00916.07
7.3.80.0070.00716.51
7.3.70.0090.00616.15
7.3.60.0060.00616.30
7.3.50.0100.00815.36
7.3.40.0060.00915.37
7.3.30.0130.00315.36
7.3.20.0060.00817.34
7.3.10.0060.00717.14
7.3.00.0050.01117.30
7.2.330.0070.01316.41
7.2.320.0130.00316.23
7.2.310.0060.01016.61
7.2.300.0060.01816.35
7.2.290.0070.01116.25
7.2.260.0070.01316.25
7.2.250.0070.01316.21
7.2.240.0100.00716.28
7.2.230.0090.00916.25
7.2.220.0040.01516.34
7.2.210.0070.00716.25
7.2.200.0070.01016.45
7.2.190.0150.00016.25
7.2.180.0100.00915.48
7.2.170.0090.00415.60
7.2.160.0060.00715.40
7.2.150.0050.00917.39
7.2.140.0070.00517.44
7.2.130.0050.00717.23
7.2.120.0050.01317.42
7.2.110.0040.00917.41
7.2.100.0070.00417.39
7.2.90.0100.00917.42
7.2.80.0040.00617.48
7.2.70.0060.00617.33
7.2.60.0130.00617.54
7.2.50.0090.00617.42
7.2.40.0070.00817.50
7.2.30.0050.00717.38
7.2.20.0070.00717.47
7.2.10.0080.00617.42
7.2.00.0050.00917.46
7.1.330.0070.00417.18
7.1.320.0070.00717.19
7.1.310.0040.00817.21
7.1.300.0100.00717.12
7.1.290.0070.00717.02
7.1.280.0090.00816.38
7.1.270.0050.00716.45
7.1.260.0060.00516.49
7.1.250.0110.00516.55
7.1.240.0040.01117.13
7.1.230.0030.00617.26
7.1.220.0110.00016.99
7.1.210.0060.00617.15
7.1.200.0090.00317.11
7.1.190.0070.01117.12
7.1.180.0140.00417.02
7.1.170.0110.00717.07
7.1.160.0040.01117.30
7.1.150.0040.01117.20
7.1.140.0000.01517.27
7.1.130.0130.00017.18
7.1.120.0050.00517.34
7.1.110.0030.00717.20
7.1.100.0000.01117.37
7.1.90.0070.00717.32
7.1.80.0100.00717.21
7.1.70.0000.01517.20
7.1.60.0030.01517.21
7.1.50.0060.01017.26
7.1.40.0090.00917.01
7.1.30.0030.00617.23
7.1.20.0040.00817.20
7.1.10.0110.00017.20
7.1.00.0000.01317.33

preferences:
29.72 ms | 403 KiB | 5 Q