3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { public function foo(string $q, ?array $params, bool $reference): bool; } class B implements A { public function foo(string $q, ?array $params = null, bool $reference = false): bool { return true; } } $class = new B(); var_dump($class->foo('bar'));

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.0130.00717.95
8.4.110.0140.00618.12
8.4.100.0140.00717.76
8.4.90.0100.01020.32
8.4.80.0090.01219.18
8.4.70.0050.00418.85
8.4.60.0120.00818.89
8.4.50.0120.00818.77
8.4.40.0150.00317.73
8.4.30.0130.00719.04
8.4.20.0120.00017.90
8.4.10.0060.00319.20
8.3.250.0110.00718.36
8.3.240.0110.00816.63
8.3.230.0110.00816.59
8.3.220.0040.00518.72
8.3.210.0070.00618.36
8.3.200.0060.00316.40
8.3.190.0110.00719.00
8.3.180.0090.00917.01
8.3.170.0100.01018.95
8.3.160.0140.00317.19
8.3.150.0070.01117.30
8.3.140.0090.00619.16
8.3.130.0030.00816.58
8.3.120.0130.00320.47
8.3.110.0080.00318.33
8.3.100.0040.01118.34
8.3.90.0140.00318.32
8.3.80.0000.00918.43
8.3.70.0160.00318.44
8.3.60.0090.00616.54
8.3.50.0040.01516.59
8.3.40.0150.00421.86
8.3.30.0070.00720.32
8.3.20.0090.01323.49
8.3.10.0140.00723.69
8.3.00.0090.01220.52
8.2.290.0120.00816.64
8.2.280.0040.00418.23
8.2.270.0180.00017.10
8.2.260.0040.00418.41
8.2.250.0050.00318.41
8.2.240.0060.00317.09
8.2.230.0030.00620.94
8.2.220.0000.00824.06
8.2.210.0140.00726.77
8.2.200.0100.00018.41
8.2.190.0110.00416.63
8.2.180.0090.00916.63
8.2.170.0090.00622.96
8.2.160.0090.00620.47
8.2.150.0090.01020.85
8.2.140.0140.00422.17
8.2.130.0100.00722.25
8.2.120.0130.00521.04
8.2.110.0110.00621.04
8.2.100.0080.00820.78
8.2.90.0110.00520.62
8.2.80.0090.00920.95
8.2.70.0120.00920.42
8.2.60.0150.00120.51
8.2.50.0120.00420.79
8.2.40.0070.01320.47
8.2.30.0070.00820.54
8.2.20.0110.00520.38
8.2.10.0110.00520.41
8.2.00.0060.01420.50
8.1.330.0100.00816.02
8.1.320.0120.00915.93
8.1.310.0040.00418.33
8.1.300.0030.00618.07
8.1.290.0040.00418.88
8.1.280.0160.00325.92
8.1.270.0090.00523.96
8.1.260.0140.00423.85
8.1.250.0070.00723.90
8.1.240.0040.01120.39
8.1.230.0100.00620.24
8.1.220.0120.01020.63
8.1.210.0110.00320.21
8.1.200.0110.00420.54
8.1.190.0070.00720.31
8.1.180.0160.00319.99
8.1.170.0090.01120.48
8.1.160.0130.00220.33
8.1.150.0150.00020.62
8.1.140.0060.00920.22
8.1.130.0080.00820.53
8.1.120.0120.00420.38
8.1.110.0130.00520.38
8.1.100.0120.00421.51
8.1.90.0090.00920.29
8.1.80.0080.00721.47
8.1.70.0080.00920.34
8.1.60.0070.01020.50
8.1.50.0060.00920.49
8.1.40.0090.00720.54
8.1.30.0070.00720.80
8.1.20.0110.00321.75
8.1.10.0050.01020.41
8.1.00.0100.00520.25

preferences:
27.8 ms | 403 KiB | 5 Q