3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [-0.0, 0.0, 1.0]; sort($a); var_dump($a); $a = array_reverse($a); sort($a); var_dump($a);

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.90.0050.00416.92
8.5.80.0100.01116.79
8.5.70.0120.01016.56
8.5.60.0120.00616.59
8.5.50.0140.00316.45
8.5.30.0100.00718.08
8.5.20.0090.00820.11
8.5.10.0130.00716.59
8.5.00.0130.01022.74
8.4.240.0110.00719.61
8.4.230.0120.00921.91
8.4.220.0160.00819.38
8.4.210.0160.00921.17
8.4.180.0170.00822.00
8.4.170.0100.01223.74
8.4.160.0150.00823.98
8.4.150.0060.00716.79
8.4.140.0120.00917.64
8.4.130.0380.00717.34
8.4.120.0370.00917.48
8.4.110.0350.01217.41
8.4.100.0360.01117.39
8.4.90.0350.01117.33
8.4.80.0370.01117.44
8.4.70.0380.01417.47
8.4.60.0410.01117.27
8.4.50.0420.00817.32
8.4.40.0380.01117.33
8.4.30.0420.00817.17
8.4.20.0400.01017.49
8.4.10.0400.01116.97
8.3.330.0120.00918.38
8.3.320.0120.00818.35
8.3.310.0070.00618.42
8.3.300.0100.00918.94
8.3.290.0040.00520.88
8.3.280.0120.00920.04
8.3.270.0080.01016.75
8.3.260.0390.00616.61
8.3.250.0380.00716.72
8.3.240.0310.01316.48
8.3.230.0390.00516.59
8.3.220.0380.00616.70
8.3.210.0380.00716.52
8.3.200.0400.00516.50
8.3.190.0480.00916.41
8.3.180.0320.01216.66
8.3.170.0370.01016.52
8.3.160.0380.01016.56
8.3.150.0410.00616.60
8.3.140.0380.00916.58
8.3.130.0330.00916.38
8.3.120.0350.00716.39
8.3.110.0360.00816.20
8.3.100.0420.00916.47
8.3.90.0410.01016.53
8.3.80.0400.00716.60
8.3.70.0350.01216.68
8.3.60.0390.00816.71
8.3.50.0370.01016.58
8.3.40.0380.00717.32
8.3.30.0290.00817.09
8.3.20.0360.00717.08
8.3.10.0310.00717.17
8.3.00.0300.00917.28
8.2.320.0110.00918.15
8.2.310.0120.00918.11
8.2.300.0170.00422.26
8.2.290.0340.01016.41
8.2.280.0280.01016.51
8.2.270.0290.01016.69
8.2.260.0310.00916.06
8.2.250.0320.00716.37
8.2.240.0310.00916.10
8.2.230.0340.00616.20
8.2.220.0370.00516.20
8.2.210.0330.00616.16
8.2.200.0330.00716.24
8.2.190.0330.00716.64
8.2.180.0350.00416.23
8.2.170.0380.00917.52
8.2.160.0320.00917.54
8.2.150.0330.00817.40
8.2.140.0340.00917.28
8.2.130.0350.00817.32
8.2.120.0330.01017.45
8.2.110.0350.00817.31
8.2.100.0340.00717.23
8.2.90.0310.01017.48
8.2.80.0340.00717.46
8.2.70.0350.00617.49
8.2.60.0320.00917.05
8.2.50.0290.01217.48
8.2.40.0310.00717.41
8.2.30.0290.01017.34
8.2.20.0400.00817.29
8.2.10.0390.00917.43
8.2.00.0330.00817.20
8.1.340.0160.00921.64

preferences:
43.67 ms | 894 KiB | 5 Q