3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public function myMethod($foo, ...$args) { print $foo; print_r($args); } } $myClass = new MyClass(); $myClass->myMethod("Hi", "here", "are","some", "args"); class ChildClass extends MyClass { public function myMethod($foo) { print $foo; } }

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.2.00.0110.00817.42
8.1.130.0140.00317.41
8.1.120.0120.00517.41
8.1.110.0110.00717.42
8.1.100.0070.01017.46
8.1.90.0120.00417.42
8.1.80.0110.00617.41
8.1.70.0170.00017.41
8.1.60.0140.00417.56
8.1.50.0150.00517.42
8.1.40.0160.00217.49
8.1.30.0160.00517.50
8.1.20.0160.00417.50
8.1.10.0100.01017.44
8.1.00.0160.00417.41
8.0.260.0120.00417.41
8.0.250.0120.00417.41
8.0.240.0160.00017.41
8.0.230.0100.00517.41
8.0.220.0140.00217.41
8.0.210.0090.00617.41
8.0.200.0140.00317.41
8.0.190.0140.00217.41
8.0.180.0100.00617.41
8.0.170.0110.00417.41
8.0.160.0120.00417.41
8.0.150.0090.00717.41
8.0.140.0120.00317.41
8.0.130.0070.00817.41
8.0.120.0150.00017.41
8.0.110.0140.00217.41
8.0.100.0070.00917.41
8.0.90.0130.00317.41
8.0.80.0070.00817.41
8.0.70.0130.00417.41
8.0.60.0160.00017.41
8.0.50.0120.00417.41
8.0.30.0130.00317.41
8.0.20.0120.00417.41
8.0.10.0130.00317.41

preferences:
134.1 ms | 1432 KiB | 7 Q