3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a(int $int1, int2 $int2 = null) { return $int1 + $int2; } function b(int $int1, ?int $int2) { return $int1 + $int2; } var_dump(a(1)); var_dump(b(1));

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.0110.01022.48
8.4.110.0060.00418.93
8.4.100.0100.01017.77
8.4.90.0110.01018.63
8.4.80.0070.00917.77
8.4.70.0110.01017.80
8.4.60.0130.00818.57
8.4.50.0070.00217.73
8.4.40.0060.01317.70
8.4.30.0130.00618.63
8.4.20.0070.01418.10
8.4.10.0060.00319.64
8.3.250.0130.01018.73
8.3.240.0040.00416.75
8.3.230.0100.00916.57
8.3.220.0080.00417.13
8.3.210.0090.00716.89
8.3.200.0060.00216.58
8.3.190.0080.01418.88
8.3.180.0080.00818.61
8.3.170.0070.01120.46
8.3.160.0160.00618.99
8.3.150.0070.01119.11
8.3.140.0140.00416.97
8.3.130.0060.00318.45
8.3.120.0070.01020.89
8.3.110.0060.00320.94
8.3.100.0050.00324.06
8.3.90.0130.00626.77
8.3.80.0050.00519.36
8.3.70.0070.01416.75
8.3.60.0110.00418.41
8.3.50.0120.00918.51
8.3.40.0080.00621.91
8.3.30.0130.00622.05
8.3.20.0140.00725.66
8.3.10.0150.00325.66
8.3.00.0110.00825.66
8.2.290.0100.00820.26
8.2.280.0100.00518.76
8.2.270.0110.00717.11
8.2.260.0040.01116.67
8.2.250.0100.00018.41
8.2.240.0070.00417.07
8.2.230.0030.00622.58
8.2.220.0000.01037.54
8.2.210.0030.00526.77
8.2.200.0050.00516.75
8.2.190.0140.00716.58
8.2.180.0130.00616.75
8.2.170.0000.01418.89
8.2.160.0100.00322.96
8.2.150.0200.00825.66
8.2.140.0050.00725.66
8.2.130.0070.01225.66
8.2.120.0090.01025.66
8.2.110.0130.00425.66
8.2.100.0110.00525.66
8.2.90.0150.00525.66
8.2.80.0110.00225.66
8.2.70.0090.00825.66
8.2.60.0050.00725.66
8.2.50.0100.00325.66
8.2.40.0100.00125.66
8.2.30.0100.00525.66
8.2.20.0120.00325.66
8.2.10.0070.00225.66
8.2.00.0100.00225.66
8.1.330.0110.00721.88
8.1.320.0140.00415.97
8.1.310.0070.01118.28
8.1.300.0100.00720.07
8.1.290.0090.00018.88
8.1.280.0080.00825.92
8.1.270.0050.00625.66
8.1.260.0080.00025.66
8.1.250.0110.00325.66
8.1.240.0090.00725.66
8.1.230.0120.00325.66
8.1.220.0080.00525.66
8.1.210.0110.00425.66
8.1.200.0080.00425.66
8.1.190.0070.00425.66
8.1.180.0090.00025.66
8.1.170.0070.00225.66
8.1.160.0070.00325.66
8.1.150.0060.00225.66
8.1.140.0060.00525.66
8.1.130.0080.00125.66
8.1.120.0050.00325.66
8.1.110.0030.00525.66
8.1.100.0010.00725.66
8.1.90.0040.00525.66
8.1.80.0080.00025.66
8.1.70.0000.00825.66
8.1.60.0060.00425.66
8.1.50.0050.00325.66
8.1.40.0040.00425.66
8.1.30.0100.00025.66
8.1.20.0040.00425.66
8.1.10.0090.00225.66
8.1.00.0050.00325.66

preferences:
26.85 ms | 403 KiB | 5 Q