3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $i = null): void { } test(null); test(32);

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.140.0160.00517.42
8.4.130.0100.01018.50
8.4.120.0130.00818.18
8.4.110.0080.00318.91
8.4.100.0120.00817.49
8.4.90.0100.01020.53
8.4.80.0080.00618.87
8.4.70.0110.00820.78
8.4.60.0040.00420.39
8.4.50.0070.01018.31
8.4.40.0160.00319.18
8.4.30.0070.01018.96
8.4.20.0030.00519.77
8.4.10.0070.01023.63
8.3.270.0190.00616.34
8.3.260.0110.00816.32
8.3.250.0090.00718.03
8.3.240.0070.00316.48
8.3.230.0130.00616.69
8.3.220.0080.00218.81
8.3.210.0100.00816.36
8.3.200.0060.00316.46
8.3.190.0110.00518.53
8.3.180.0070.01118.59
8.3.170.0090.00919.06
8.3.160.0140.00418.30
8.3.150.0070.01116.55
8.3.140.0070.01116.60
8.3.130.0040.00418.27
8.3.120.0000.00920.75
8.3.110.0060.00320.94
8.3.100.0000.00916.48
8.3.90.0090.00926.77
8.3.80.0060.00318.56
8.3.70.0160.00318.06
8.3.60.0160.00018.56
8.3.50.0100.01016.69
8.3.40.0140.00023.70
8.3.30.0070.00718.55
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0110.00717.08
8.2.280.0130.00618.06
8.2.270.0070.01118.05
8.2.260.0120.00317.04
8.2.250.0040.00417.04
8.2.240.0040.00416.95
8.2.230.0080.00022.58
8.2.220.0100.00024.06
8.2.210.0070.01126.77
8.2.200.0030.00616.25
8.2.190.0110.00416.58
8.2.180.0070.00716.32
8.2.170.0090.00618.83
8.2.160.0100.00322.96
8.2.150.0000.00825.66
8.2.140.0050.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0060.00322.09
8.2.100.0080.00417.66
8.2.90.0060.00317.63
8.2.80.0060.00318.66
8.2.70.0000.00817.50
8.2.60.0050.00317.38
8.2.50.0040.00417.55
8.2.40.0060.00317.62
8.2.30.0100.00017.43
8.2.20.0000.00817.43
8.2.10.0130.00317.46
8.2.00.0150.00317.47
8.1.330.0130.00616.17
8.1.320.0120.00817.52
8.1.310.0080.00616.38
8.1.300.0000.00916.00
8.1.290.0090.00030.84
8.1.280.0110.00725.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.90
8.1.230.0070.00419.15
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00817.11
8.1.180.0000.00818.10
8.1.170.0000.00717.62
8.1.160.0090.00317.21
8.1.150.0140.00317.25
8.1.140.0150.00317.23
8.1.130.0140.00217.31
8.1.120.0120.00417.31
8.1.110.0130.00317.31
8.1.100.0130.00317.32
8.1.90.0110.00417.30
8.1.80.0050.01017.32
8.1.70.0070.00717.27
8.1.60.0090.00917.50
8.1.50.0110.00917.34
8.1.40.0200.00017.41
8.1.30.0160.00417.51
8.1.20.0150.00517.47
8.1.10.0120.00617.43
8.1.00.0110.00817.14
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0120.00016.73
8.0.270.0120.00316.73
8.0.260.0120.00016.73
8.0.250.0000.00816.73
8.0.240.0060.00316.73
8.0.230.0030.00516.73
8.0.220.0060.00216.73
8.0.210.0040.00416.73
8.0.200.0080.00416.73
8.0.190.0090.00616.73
8.0.180.0130.00416.73
8.0.170.0090.00316.73
8.0.160.0100.00016.73
8.0.150.0050.00516.73
8.0.140.0060.00616.73
8.0.130.0070.00216.73
8.0.120.0110.00416.73
8.0.110.0090.00616.73
8.0.100.0110.00516.73
8.0.90.0150.00016.73
8.0.80.0120.00416.73
8.0.70.0100.00516.73
8.0.60.0110.00416.73
8.0.50.0140.00016.73
8.0.30.0100.00516.73
8.0.20.0150.00016.73
8.0.10.0130.00316.73

preferences:
35.01 ms | 403 KiB | 5 Q