3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); $options = [ 1, 2, ]; uasort($options, strnatcasecmp(...)); var_dump($options); var_dump(strnatcasecmp(1, 2));

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.5.10.0110.00621.47
8.5.00.0130.01020.24
8.4.150.0020.00014.05
8.4.140.0160.00517.73
8.4.130.0080.01217.64
8.4.120.0120.00720.57
8.4.110.0120.01122.62
8.4.100.0110.01017.90
8.4.90.0150.00619.05
8.4.80.0050.00317.97
8.4.70.0130.00817.96
8.4.60.0140.00620.32
8.4.50.0100.00919.80
8.4.40.0150.00618.13
8.4.30.0150.00320.58
8.4.20.0030.01319.68
8.4.10.0160.00019.54
8.3.280.0020.00014.05
8.3.270.0140.01116.92
8.3.260.0110.00616.42
8.3.250.0110.00718.96
8.3.240.0110.00916.64
8.3.230.0100.00916.86
8.3.220.0040.00418.86
8.3.210.0090.01016.87
8.3.200.0040.00516.83
8.3.190.0060.00217.13
8.3.180.0050.00416.73
8.3.170.0080.01117.15
8.3.160.0040.00417.20
8.3.150.0130.00716.92
8.3.140.0040.00418.45
8.3.130.0080.00018.33
8.3.120.0000.00920.85
8.3.110.0290.01616.42
8.3.100.0510.00716.21
8.3.90.0360.01516.52
8.3.80.0450.00416.48
8.3.70.0350.01116.38
8.3.60.0410.00616.34
8.3.50.0370.00316.49
8.3.40.0420.00317.25
8.3.30.0200.00917.13
8.3.20.0360.00617.38
8.3.10.0200.00517.50
8.3.00.0030.00919.13
8.2.290.0120.00620.32
8.2.280.0090.01020.12
8.2.270.0060.00317.32
8.2.260.0180.00016.67
8.2.250.0050.00316.61
8.2.240.0030.00717.18
8.2.230.0130.00416.46
8.2.220.0140.00416.55
8.2.210.0150.00416.47
8.2.200.0150.00516.59
8.2.190.0160.00316.00
8.2.180.0150.00316.79
8.2.170.0200.00417.25
8.2.160.0150.00517.63
8.2.150.0200.00017.50
8.2.140.0120.00917.50
8.2.130.0320.01317.34
8.2.120.0320.01217.38
8.2.110.0160.02017.38
8.2.100.0290.01317.38
8.2.90.0300.01317.25
8.2.80.0320.00617.25
8.2.70.0360.00317.25
8.2.60.0330.00317.25
8.2.50.0310.00817.25
8.2.40.0330.00817.13
8.2.30.0370.00317.25
8.2.20.0390.00417.25
8.2.10.0390.00317.25
8.2.00.0300.00717.13
8.1.330.0110.00820.35
8.1.320.0130.00416.38
8.1.310.0150.00016.45
8.1.300.0060.00318.60
8.1.290.0340.00615.73
8.1.280.0280.01416.11
8.1.270.0280.01216.92
8.1.260.0380.00617.11
8.1.250.0410.00417.25
8.1.240.0290.01116.88
8.1.230.0180.00917.00
8.1.220.0260.01317.10
8.1.210.0280.01217.00
8.1.200.0300.01416.97
8.1.190.0510.01016.85
8.1.180.0340.00317.10
8.1.170.0240.01517.22
8.1.160.0270.00817.23
8.1.150.0280.00917.38
8.1.140.0200.01317.13
8.1.130.0320.00917.11
8.1.120.0270.01417.25
8.1.110.0280.01416.98
8.1.100.0250.00616.98
8.1.90.0220.00316.97
8.1.80.0170.00316.88
8.1.70.0240.01217.00
8.1.60.0390.00717.38
8.1.50.0290.00817.11
8.1.40.0360.00417.50
8.1.30.0150.00517.47
8.1.20.0240.00317.36
8.1.10.0260.00317.25
8.1.00.0280.00617.13

preferences:
32.18 ms | 403 KiB | 5 Q