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); 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.0130.00719.06
8.4.10.0050.00319.43
8.3.140.0040.00416.36
8.3.130.0070.00316.50
8.3.120.0060.00320.52
8.3.110.0030.00620.94
8.3.100.0040.00416.66
8.3.90.0080.00026.77
8.3.80.0090.00016.38
8.3.70.0100.01016.50
8.3.60.0150.00318.43
8.3.50.0110.00717.30
8.3.40.0110.00318.63
8.3.30.0070.00718.62
8.3.20.0040.00421.70
8.3.10.0060.00319.15
8.3.00.0080.00021.94
8.2.260.0070.00716.39
8.2.250.0090.00016.50
8.2.240.0030.00518.92
8.2.230.0050.00322.58
8.2.220.0030.00737.54
8.2.210.0000.00826.77
8.2.200.0040.00416.63
8.2.190.0070.01116.63
8.2.180.0090.00918.17
8.2.170.0060.00922.96
8.2.160.0100.01419.09
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00020.37
8.2.110.0090.00020.52
8.2.100.0080.00417.78
8.2.90.0040.00417.63
8.2.80.0040.00418.78
8.2.70.0050.00317.50
8.2.60.0060.00317.50
8.2.50.0060.00317.55
8.2.40.0070.00019.36
8.2.30.0040.00420.41
8.2.20.0100.00017.94
8.2.10.0040.00418.80
8.2.00.0040.00417.87
8.1.310.0080.00018.41
8.1.300.0030.00518.41
8.1.290.0070.00330.84
8.1.280.0030.01225.92
8.1.270.0040.00420.82
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00619.11
8.1.230.0090.00322.63
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0000.01118.51
8.1.160.0040.00418.82
8.1.150.0000.00718.82
8.1.140.0000.00720.20
8.1.130.0000.00717.35
8.1.120.0000.00717.40
8.1.110.0030.00517.29
8.1.100.0000.00717.44
8.1.90.0000.00717.38
8.1.80.0040.00417.30
8.1.70.0080.00017.41
8.1.60.0040.00417.40
8.1.50.0040.00417.34
8.1.40.0080.00017.46
8.1.30.0080.00017.57
8.1.20.0040.00417.50
8.1.10.0040.00417.44
8.1.00.0050.00217.44
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0070.00018.25
8.0.270.0030.00317.19
8.0.260.0040.00416.61
8.0.250.0070.00016.77
8.0.240.0070.00016.86
8.0.230.0080.00016.81
8.0.220.0000.00716.81
8.0.210.0000.00716.69
8.0.200.0000.00716.75
8.0.190.0040.00416.91
8.0.180.0000.00716.73
8.0.170.0040.00416.82
8.0.160.0040.00416.81
8.0.150.0030.00316.69
8.0.140.0040.00416.82
8.0.130.0090.00013.24
8.0.120.0060.00316.85
8.0.110.0040.00416.84
8.0.100.0030.00316.72
8.0.90.0070.00016.77
8.0.80.0090.00416.86
8.0.70.0040.00416.80
8.0.60.0040.00416.74
8.0.50.0000.00716.86
8.0.30.0090.01217.14
8.0.20.0110.01416.87
8.0.10.0050.00216.96
8.0.00.0090.01016.63
7.4.330.0000.00415.55
7.4.320.0000.00616.56
7.4.300.0030.00316.41
7.4.290.0000.00716.55
7.4.280.0000.00716.43
7.4.270.0000.00916.36
7.4.260.0000.00716.47
7.4.250.0070.00016.30
7.4.240.0000.00716.43
7.4.230.0030.00316.41
7.4.220.0000.00816.53
7.4.210.0100.00516.51
7.4.200.0030.00316.61
7.4.160.0100.00916.45
7.4.140.0120.00717.86
7.4.130.0070.01016.35
7.4.120.0180.00416.38
7.4.110.0030.01316.18
7.4.100.0150.00916.40
7.4.90.0030.01616.35
7.4.80.0160.00419.39
7.4.70.0070.01016.50
7.4.60.0100.01016.23
7.4.50.0110.00416.26
7.4.40.0060.01216.43
7.4.00.0090.00314.86
7.3.330.0000.00512.98
7.3.320.0060.00012.97
7.3.310.0070.00016.07
7.3.300.0000.00716.09
7.3.290.0070.00016.04
7.3.280.0110.00816.11
7.3.260.0110.00616.23
7.3.230.0070.01016.20
7.3.210.0060.01215.98
7.3.200.0060.01016.25
7.3.190.0070.01016.51
7.3.180.0100.00716.31
7.3.170.0100.00716.29
7.3.160.0060.01616.37
7.3.50.0080.01314.78
7.3.40.0030.00714.62
7.3.30.0160.01014.43
7.3.20.0170.00814.38
7.3.10.0070.00714.43
7.3.00.0090.00414.69
7.2.330.0030.01716.35
7.2.320.0110.00616.39
7.2.310.0160.00016.41
7.2.300.0070.01716.57
7.2.290.0070.01016.33
7.2.180.0060.00914.86
7.2.170.0000.01014.64
7.2.160.0050.00814.86
7.2.150.0100.00314.85
7.2.140.0110.00314.93
7.2.130.0120.01514.89
7.2.120.0090.00514.96
7.2.110.0110.00314.77
7.2.100.0090.00914.55
7.2.90.0110.00714.84
7.2.80.0120.00314.83
7.2.70.0200.00614.85
7.2.60.0160.01215.02
7.2.50.0150.00914.88
7.2.40.0150.00314.86
7.2.30.0160.00614.95
7.2.20.0110.00814.86
7.2.10.0130.01014.96
7.2.00.0840.00314.82
7.1.280.0230.00313.73
7.1.270.0090.00913.91
7.1.260.0400.00313.98
7.1.250.0140.00013.68

preferences:
35.6 ms | 403 KiB | 5 Q