3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPlt84 { function bar(int $a = null, array $b) {} } class PHPlt84Child extends PHPlt84 { function bar(?int $a, array $b) {} } class PHPgte71 { function bar(?int $a, array $b) {} } class PHPgte71Child extends PHPgte71 { function bar(int $a = null, array $b) {} }

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.0120.00823.89
8.4.110.0140.00822.27
8.4.100.0120.00817.66
8.4.90.0040.00618.32
8.4.80.0110.00818.46
8.4.70.0050.00317.95
8.4.60.0110.00819.06
8.4.50.0110.01020.30
8.4.40.0100.01017.26
8.4.30.0030.01618.88
8.4.20.0120.00318.19
8.4.10.0090.01219.31
8.3.250.0090.01018.72
8.3.240.0120.00716.93
8.3.230.0070.00316.45
8.3.220.0100.00418.69
8.3.210.0090.00518.20
8.3.200.0040.00516.53
8.3.190.0130.00718.81
8.3.180.0130.00616.34
8.3.170.0050.00319.04
8.3.160.0110.00718.68
8.3.150.0130.00616.85
8.3.140.0140.00018.96
8.3.130.0090.00018.44
8.3.120.0000.01618.11
8.3.110.0000.00816.38
8.3.100.0040.00418.13
8.3.90.0110.00416.26
8.3.80.0000.01018.43
8.3.70.0070.00718.03
8.3.60.0070.01718.30
8.3.50.0140.00716.43
8.3.40.0030.01021.86
8.3.30.0070.00720.30
8.3.20.0120.00924.89
8.3.10.0100.01024.92
8.3.00.0120.00724.26
8.2.290.0150.00320.18
8.2.280.0080.01118.41
8.2.270.0040.01116.88
8.2.260.0120.00616.51
8.2.250.0040.00416.34
8.2.240.0120.00618.79
8.2.230.0080.00820.94
8.2.220.0070.00324.06
8.2.210.0110.00426.77
8.2.200.0030.00618.04
8.2.190.0120.00316.58
8.2.180.0110.00416.32
8.2.170.0140.00718.68
8.2.160.0030.01022.96
8.2.150.0090.01024.29
8.2.140.0090.00724.64
8.2.130.0070.00924.60
8.2.120.0100.00624.34
8.2.110.0090.00724.40
8.2.100.0100.00724.30
8.2.90.0130.00524.27
8.2.80.0080.00824.32
8.2.70.0100.00724.24
8.2.60.0110.00724.58
8.2.50.0130.00424.30
8.2.40.0100.00624.25
8.2.30.0090.00724.62
8.2.20.0120.00724.24
8.2.10.0100.00724.58
8.2.00.0100.00824.20
8.1.330.0080.01021.97
8.1.320.0090.01116.13
8.1.310.0150.00316.51
8.1.300.0080.00018.13
8.1.290.0000.00818.88
8.1.280.0070.00725.92
8.1.270.0070.00724.94
8.1.260.0080.00524.92
8.1.250.0100.00524.96
8.1.240.0120.00324.20
8.1.230.0100.00624.17
8.1.220.0070.00724.24
8.1.210.0100.00724.18
8.1.200.0100.00324.27
8.1.190.0110.00624.19
8.1.180.0120.00524.17
8.1.170.0100.00424.26
8.1.160.0090.00724.20
8.1.150.0120.00524.25
8.1.140.0120.00524.21
8.1.130.0100.00424.19
8.1.120.0160.00324.24
8.1.110.0100.00524.22
8.1.100.0100.00424.22
8.1.90.0090.00624.19
8.1.80.0070.00824.44
8.1.70.0080.00724.23
8.1.60.0090.00624.21
8.1.50.0100.00624.22
8.1.40.0090.00724.22
8.1.30.0050.00924.28
8.1.20.0080.00624.52
8.1.10.0070.00924.22
8.1.00.0080.00824.19

preferences:
25.93 ms | 403 KiB | 5 Q