3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [3]; foo(...$a ?? range(1,2)); $a = [null]; foo(...$a ?? range(1,2)); $a = null; foo(...$a ?? range(1,2)); function foo() { print_r(func_get_args()); }

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.60.0120.00816.64
8.5.50.0040.00316.77
8.5.30.0070.01017.91
8.5.20.0090.00719.89
8.5.10.0100.00716.69
8.5.00.0140.00719.93
8.4.210.0110.00919.49
8.4.180.0090.01221.91
8.4.170.0110.00922.00
8.4.160.0150.00722.15
8.4.150.0090.00416.76
8.4.140.0160.00717.53
8.4.130.0120.00917.63
8.4.120.0100.00920.73
8.4.110.0180.00422.46
8.4.100.0140.00617.77
8.4.90.0120.00817.65
8.4.80.0040.00422.54
8.4.70.0090.01117.86
8.4.60.0300.00920.68
8.4.50.0350.01117.40
8.4.40.0440.00517.32
8.4.30.0370.01217.49
8.4.20.0370.01117.33
8.4.10.0410.00817.18
8.3.300.0110.00920.56
8.3.290.0130.00922.53
8.3.280.0170.00718.44
8.3.270.0090.01016.54
8.3.260.0120.00816.71
8.3.250.0040.00318.76
8.3.240.0050.00316.57
8.3.230.0130.00316.59
8.3.220.0120.00617.18
8.3.210.0130.00716.84
8.3.200.0350.00416.51
8.3.190.0360.00916.70
8.3.180.0340.00716.55
8.3.170.0370.01016.26
8.3.160.0420.00416.56
8.3.150.0430.00516.22
8.3.140.0410.00916.46
8.3.130.0300.01216.38
8.3.120.0320.01016.46
8.3.110.0310.01016.61
8.3.100.0380.00916.39
8.3.90.0410.00716.51
8.3.80.0370.01016.44
8.3.70.0400.00816.59
8.3.60.0380.00916.26
8.3.50.0390.00716.59
8.3.40.0390.00817.57
8.3.30.0270.01017.43
8.3.20.0290.01017.39
8.3.10.0290.00517.45
8.3.00.0180.00717.55
8.2.300.0110.01020.39
8.2.290.0030.00520.22
8.2.280.0280.01016.57
8.2.270.0300.00916.46
8.2.260.0320.00716.29
8.2.250.0310.01016.57
8.2.240.0320.00916.42
8.2.230.0330.00716.18
8.2.220.0300.01016.43
8.2.210.0310.01016.48
8.2.200.0250.00716.48
8.2.190.0310.00816.38
8.2.180.0280.01016.70
8.2.170.0360.00717.66
8.2.160.0380.00517.60
8.2.150.0310.01117.49
8.2.140.0400.00617.54
8.2.130.0340.00817.66
8.2.120.0360.00917.62
8.2.110.0270.00617.66
8.2.100.0300.00917.38
8.2.90.0210.00317.70
8.2.80.0150.00417.50
8.2.70.0340.01017.50
8.2.60.0370.00917.26
8.2.50.0340.00617.61
8.2.40.0300.00917.32
8.2.30.0300.00817.68
8.2.20.0310.01117.29
8.2.10.0330.01117.38
8.2.00.0260.00617.61
8.1.340.0140.00920.02

preferences:
41.15 ms | 852 KiB | 5 Q