3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function qux(): void { $args = [ 'secondArgument' => 'arg', 'firstArgument' => true, ]; $this->bar(...$args); } private function bar(bool $firstArgument, string $secondArgument): void { // ... } } $foo = new Foo(); $foo->qux();

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.60.0060.00116.78
8.5.30.0120.00419.36
8.5.20.0130.00817.99
8.5.10.0120.00716.82
8.5.00.0200.00718.70
8.4.180.0120.01119.54
8.4.170.0120.01023.82
8.4.160.0090.01223.13
8.4.150.0090.00316.87
8.4.140.0110.01017.76
8.4.130.0100.00917.82
8.4.120.0120.00820.71
8.4.110.0150.00422.38
8.4.100.0130.00717.56
8.4.90.0090.01118.61
8.4.80.0140.00717.59
8.4.70.0140.00517.86
8.4.60.0120.00918.77
8.4.50.0100.01118.49
8.4.40.0070.01317.43
8.4.30.0040.00418.88
8.4.20.0130.00717.85
8.4.10.0100.01019.57
8.3.300.0060.01520.71
8.3.290.0140.00720.85
8.3.280.0130.01018.25
8.3.270.0100.00916.43
8.3.260.0110.00816.67
8.3.250.0090.00818.87
8.3.240.0120.00716.61
8.3.230.0120.00716.50
8.3.220.0130.00717.21
8.3.210.0110.00718.48
8.3.200.0050.00316.64
8.3.190.0120.00716.92
8.3.180.0090.00818.17
8.3.170.0110.00420.66
8.3.160.0090.00918.20
8.3.150.0040.01518.44
8.3.140.0070.00717.20
8.3.130.0040.00418.41
8.3.120.0070.00020.75
8.3.110.0030.00720.94
8.3.100.0060.00324.06
8.3.90.0090.00926.77
8.3.80.0090.00017.97
8.3.70.0070.01118.18
8.3.60.0120.00918.43
8.3.50.0110.01116.56
8.3.40.0090.00620.43
8.3.30.0100.00322.96
8.3.20.0000.01423.61
8.2.300.0110.01120.38
8.2.290.0110.00720.60
8.2.280.0060.00418.30
8.2.270.0070.01119.06
8.2.260.0000.00916.77
8.2.250.0040.00418.66
8.2.240.0080.00018.96
8.2.230.0040.00722.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0040.00416.63
8.2.190.0070.01116.58
8.2.180.0070.01718.17
8.2.170.0100.00322.96
8.2.160.0100.00322.96
8.2.150.0090.00622.96
8.1.340.0120.01117.64
8.1.330.0100.00921.89
8.1.320.0160.00315.96
8.1.310.0120.00416.27
8.1.300.0040.00416.31
8.1.290.0050.00530.84
8.1.280.0170.00325.92
8.0.200.0380.00925.92
8.0.00.0130.00428.09
7.4.330.0230.00925.92
7.4.00.0200.00925.92

preferences:
58.89 ms | 809 KiB | 5 Q