3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['A', 'BBB', 'CC', 'DD', 'E', 'FF', 'G']; uasort($arr, fn ($a, $b) => strlen($a) <=> strlen($b)); var_export($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.3.120.0090.00020.58
8.3.110.0040.00416.86
8.3.100.0070.00716.56
8.3.90.0030.00626.77
8.3.80.0030.00718.43
8.3.70.0070.00718.30
8.3.60.0130.00916.49
8.3.50.0060.00916.52
8.3.40.0070.00720.24
8.3.30.0100.00318.59
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.240.0090.00617.24
8.2.230.0080.00020.94
8.2.220.0080.00437.54
8.2.210.0140.00026.77
8.2.200.0060.00316.72
8.2.190.0120.00316.58
8.2.180.0120.00818.16
8.2.170.0000.01422.96
8.2.160.0110.00422.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.36
8.2.110.0060.00320.96
8.2.100.0080.00417.78
8.2.90.0040.00418.07
8.2.80.0040.00418.03
8.2.70.0090.00017.38
8.2.60.0120.00617.38
8.2.50.0120.00617.38
8.2.40.0170.00017.38
8.2.30.0080.00817.38
8.2.20.0110.00617.38
8.2.10.0120.00517.25
8.2.00.0110.00517.50
8.1.290.0030.00730.84
8.1.280.0140.00025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0070.00422.07
8.1.230.0080.00320.94
8.1.220.0000.00917.78
8.1.210.0060.00318.79
8.1.200.0030.00517.36
8.1.190.0060.01117.09
8.1.180.0140.00317.13
8.1.170.0160.00617.13
8.1.160.0130.00317.00
8.1.150.0100.00717.13
8.1.140.0120.00417.13
8.1.130.0160.00017.13
8.1.120.0140.00316.88
8.1.110.0110.00517.38
8.1.100.0080.00816.88
8.1.90.0120.00617.34
8.1.80.0170.00017.11
8.1.70.0130.00617.34
8.1.60.0080.01017.25
8.1.50.0110.00717.38
8.1.40.0150.00417.50
8.1.30.0160.00217.23
8.1.20.0190.00017.38
8.1.10.0120.00617.13
8.1.00.0150.00217.13
8.0.300.0070.00019.88
8.0.290.0040.00416.75
8.0.280.0130.00316.63
8.0.270.0090.00916.63
8.0.260.0070.01016.52
8.0.250.0050.01016.52
8.0.240.0080.00816.85
8.0.230.0180.00016.52
8.0.220.0080.00816.63
8.0.210.0090.00916.52
8.0.200.0140.00216.52
8.0.190.0150.00316.59
8.0.180.0150.00216.52
8.0.170.0100.00716.75
8.0.160.0060.00916.73
8.0.150.0100.00716.52
8.0.140.0160.00016.52
8.0.130.0130.00316.52
8.0.120.0120.00416.59
8.0.110.0130.00316.73
8.0.100.0170.00016.52
8.0.90.0150.00216.52
8.0.80.0140.00416.52
8.0.70.0090.00916.52
8.0.60.0150.00516.52
8.0.50.0080.00816.52
8.0.30.0120.00616.74
8.0.20.0080.00816.61
8.0.10.0130.00316.52

preferences:
39.91 ms | 403 KiB | 5 Q