3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = []; $x[2] = 'a'; $x[1] = 'b'; $x[0] = 'c'; ksort($x); echo json_encode($x);

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.120.0080.00223.88
8.4.110.0060.00321.53
8.4.100.0030.00618.71
8.4.90.0130.00818.86
8.4.80.0080.00820.41
8.4.70.0130.00717.80
8.4.60.0120.00818.65
8.4.50.0110.00918.81
8.4.40.0080.01118.33
8.4.30.0030.01318.93
8.4.20.0100.01019.69
8.4.10.0080.00819.49
8.3.250.0090.00619.05
8.3.240.0130.00617.13
8.3.230.0110.00916.32
8.3.220.0100.00818.80
8.3.210.0130.00716.33
8.3.200.0050.00616.16
8.3.190.0130.00517.09
8.3.180.0050.00417.23
8.3.170.0140.00320.84
8.3.160.0140.00417.18
8.3.150.0070.01117.05
8.3.140.0050.00320.65
8.3.130.0070.00416.86
8.3.120.0090.00020.73
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0000.00826.77
8.3.80.0030.00617.97
8.3.70.0120.00918.28
8.3.60.0120.00616.39
8.3.50.0070.00716.58
8.3.40.0130.01319.75
8.3.30.0140.00719.02
8.3.20.0130.00721.68
8.3.10.0070.01121.86
8.3.00.0090.00918.79
8.2.290.0040.00420.35
8.2.280.0120.00818.43
8.2.270.0090.00917.20
8.2.260.0080.00316.58
8.2.250.0130.00316.74
8.2.240.0070.01119.02
8.2.230.0030.00722.58
8.2.220.0100.00637.54
8.2.210.0000.00826.77
8.2.200.0070.00316.63
8.2.190.0080.00818.16
8.2.180.0140.00718.29
8.2.170.0040.01518.93
8.2.160.0030.01419.84
8.2.150.0060.01219.02
8.2.140.0100.00720.52
8.2.130.0100.00720.46
8.2.120.0140.00019.39
8.2.110.0030.01219.40
8.2.100.0070.00719.22
8.2.90.0040.01118.95
8.2.80.0030.01019.22
8.2.70.0110.00418.77
8.2.60.0070.00718.90
8.2.50.0140.00019.39
8.2.40.0000.01519.00
8.2.30.0110.00418.83
8.2.20.0120.00318.69
8.2.10.0000.01518.65
8.2.00.0120.00318.65
8.1.330.0090.01021.79
8.1.320.0070.00416.15
8.1.310.0000.00816.53
8.1.300.0030.00618.44
8.1.290.0060.00330.84
8.1.280.0100.00725.92
8.1.270.0130.00322.10
8.1.260.0160.00322.07
8.1.250.0030.01422.19
8.1.240.0120.00318.50
8.1.230.0100.00718.57
8.1.220.0150.00019.00
8.1.210.0100.01018.43
8.1.200.0060.01318.81
8.1.190.0130.00318.68
8.1.180.0070.01018.18
8.1.170.0000.01418.67
8.1.160.0110.00418.39
8.1.150.0110.00418.56
8.1.140.0090.00618.76
8.1.130.0000.01520.47
8.1.120.0120.00318.54
8.1.110.0160.00018.55
8.1.100.0070.00719.48
8.1.90.0070.00718.43
8.1.80.0140.00019.73
8.1.70.0110.00318.84
8.1.60.0110.00418.56
8.1.50.0120.00318.54
8.1.40.0080.00818.68
8.1.30.0120.00318.89
8.1.20.0070.00719.93
8.1.10.0120.00318.74
8.1.00.0000.01518.62

preferences:
26.22 ms | 403 KiB | 5 Q