3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr = ['a', 'foo' => 'b']; var_dump(array_splice($arr, 0, 2)); $arr = ['a', 'b']; var_dump(array_splice($arr, 0, 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.30.0110.00619.73
8.5.20.0120.00520.23
8.5.10.0100.00716.61
8.5.00.0120.00819.94
8.4.180.0130.01019.60
8.4.170.0140.00723.82
8.4.160.0120.00923.88
8.4.150.0070.00616.81
8.4.140.0110.01117.43
8.4.130.0130.00817.86
8.4.120.0100.00922.34
8.4.110.0120.00718.70
8.4.100.0050.00517.59
8.4.90.0120.00817.59
8.4.80.0130.00617.71
8.4.70.0050.00419.53
8.4.60.0410.00617.26
8.4.50.0380.00817.30
8.4.40.0400.00817.19
8.4.30.0440.00717.38
8.4.20.0360.01017.41
8.4.10.0350.00717.36
8.3.300.0090.01021.03
8.3.290.0120.00820.72
8.3.280.0070.00416.15
8.3.270.0120.00816.36
8.3.260.0090.01016.45
8.3.250.0080.01116.97
8.3.240.0140.00416.54
8.3.230.0130.00616.64
8.3.220.0120.00816.54
8.3.210.0100.00716.45
8.3.200.0300.00916.25
8.3.190.0360.00616.23
8.3.180.0380.01016.14
8.3.170.0420.00816.14
8.3.160.0330.01416.37
8.3.150.0380.00716.46
8.3.140.0400.00716.52
8.3.130.0340.00816.45
8.3.120.0330.00916.28
8.3.110.0340.00916.39
8.3.100.0390.00716.26
8.3.90.0360.00716.41
8.3.80.0420.00616.59
8.3.70.0570.00716.32
8.3.60.0350.01416.45
8.3.50.0380.00916.50
8.3.40.0340.00717.33
8.3.30.0300.00617.31
8.3.20.0310.00717.30
8.3.10.0240.00917.30
8.3.00.0260.00717.50
8.2.300.0140.00718.52
8.2.290.0160.00318.95
8.2.280.0300.01216.44
8.2.270.0290.01016.61
8.2.260.0290.01116.25
8.2.250.0310.00916.60
8.2.240.0280.01416.27
8.2.230.0310.00916.46
8.2.220.0340.00716.38
8.2.210.0280.01216.14
8.2.200.0300.01016.26
8.2.190.0280.01116.21
8.2.180.0290.01116.47
8.2.170.0470.00617.69
8.2.160.0350.00717.29
8.2.150.0350.00817.57
8.2.140.0340.00717.25
8.2.130.0360.00617.23
8.2.120.0290.00717.57
8.2.110.0230.00417.57
8.2.100.0280.00417.43
8.2.90.0260.00917.31
8.2.80.0220.00317.57
8.2.70.0230.00517.15
8.2.60.0130.00517.56
8.2.50.0350.00817.25
8.2.40.0300.00917.36
8.2.30.0380.00916.98
8.2.20.0290.00917.38
8.2.10.0290.01017.46
8.2.00.0310.00717.39
8.1.340.0150.00419.84

preferences:
53.36 ms | 843 KiB | 5 Q