3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo(?DateTimeInterface $bar=null, ...$vargs) { var_dump($bar, $vargs); } foo(...['a' => 1, 'b' => 2, 'c' => 3], ...[4, 5, 6]);

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.0100.00718.08
8.5.20.0070.01020.03
8.5.10.0140.00616.57
8.5.00.0120.00919.91
8.4.180.0100.01322.02
8.4.170.0130.01022.05
8.4.160.0130.00922.09
8.4.150.0060.00716.90
8.4.140.0120.00917.67
8.4.130.0120.00817.69
8.4.120.0120.00820.62
8.4.110.0130.00722.27
8.4.100.0050.00317.75
8.4.90.0150.00622.45
8.4.80.0090.00317.73
8.4.70.0400.01017.75
8.4.60.0350.01217.52
8.4.50.0320.00818.04
8.4.40.0400.00817.61
8.4.30.0440.00717.88
8.4.20.0490.00617.77
8.4.10.0430.00617.50
8.3.300.0120.00820.79
8.3.290.0130.00922.40
8.3.280.0100.00918.43
8.3.270.0100.01016.61
8.3.260.0110.00816.55
8.3.250.0100.01018.64
8.3.240.0110.00818.40
8.3.230.0120.00516.43
8.3.220.0110.00717.29
8.3.210.0340.00516.86
8.3.200.0330.01216.50
8.3.190.0300.01316.46
8.3.180.0320.00616.39
8.3.170.0280.01016.54
8.3.160.0410.00616.63
8.3.150.0380.00916.32
8.3.140.0350.01216.70
8.3.130.0330.01016.43
8.3.120.0380.00916.25
8.3.110.0310.00916.77
8.3.100.0370.01016.70
8.3.90.0280.00716.46
8.3.80.0240.00516.39
8.3.70.0220.01016.23
8.3.60.0360.00616.39
8.3.50.0220.00316.58
8.3.40.0440.00317.62
8.3.30.0260.00817.56
8.3.20.0300.01217.55
8.3.10.0290.00917.37
8.3.00.0160.01017.52
8.2.300.0090.01120.25
8.2.290.0080.01020.26
8.2.280.0320.00716.45
8.2.270.0320.01216.88
8.2.260.0380.00816.52
8.2.250.0310.00916.89
8.2.240.0340.00816.47
8.2.230.0300.01216.52
8.2.220.0250.00716.75
8.2.210.0300.00716.38
8.2.200.0250.01216.58
8.2.190.0340.00616.48
8.2.180.0300.00916.52
8.2.170.0320.01417.67
8.2.160.0300.00617.72
8.2.150.0300.00717.39
8.2.140.0360.00817.20
8.2.130.0360.00517.27
8.2.120.0310.00717.50
8.2.110.0360.00417.62
8.2.100.0220.00417.52
8.2.90.0200.00917.60
8.2.80.0330.00717.51
8.2.70.0340.00617.50
8.2.60.0330.00617.39
8.2.50.0280.00817.58
8.2.40.0290.00917.48
8.2.30.0380.00717.35
8.2.20.0290.00617.41
8.2.10.0350.00617.35
8.2.00.0310.01117.62
8.1.340.0090.01020.34

preferences:
54.26 ms | 865 KiB | 5 Q