3v4l.org

run code in 200+ PHP versions simultaneously
<?php interface Employee {} class SteelFactoryEmployee implements Employee {} class CarsFactoryEmployee implements Employee {} interface Factory { public function hire(Employee $employee): bool; } class SteelFactory implements Factory { public function hire(SteelFactoryEmployee $employee): bool { return true; } } class CarsFactory implements Factory { public function hire(CarsFactoryEmployee $employee): bool { return true; } } class EmploymentDepartment { public function hireNewEmployee(Factory $factory, Employee $employee): void { $factory->hire($employee); } } $someNewEmployee = new SteelFactoryEmployee(); $someFactory = new SteelFactory(); $employmentDepartment = new EmploymentDepartment(); $employmentDepartment->hireNewEmployee($someFactory, $someNewEmployee);
based on XFsLd

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)
7.4.00.0090.00914.67
7.3.120.0070.01214.69
7.3.110.0090.00614.75
7.3.100.0090.00614.57
7.3.90.0120.00614.74
7.3.80.0050.01014.69
7.3.70.0080.00514.57
7.3.60.0080.00514.44
7.3.50.0050.01114.58
7.3.40.0080.01014.55
7.3.30.0020.01514.62
7.3.20.0090.00915.17
7.3.10.0080.00515.08
7.3.00.0090.00615.17
7.2.250.0080.01114.73
7.2.240.0100.00714.91
7.2.230.0110.00914.77
7.2.220.0140.00614.79
7.2.210.0060.00914.84
7.2.200.0080.00714.68
7.2.190.0080.00914.68
7.2.180.0100.00814.81
7.2.170.0070.01314.77
7.1.330.0370.00414.40
7.1.320.0090.00614.50
7.1.310.0060.00914.30
7.1.300.0090.00614.22
7.1.290.0070.01114.29
7.1.280.0070.01114.34
7.1.270.0060.01014.26
7.1.260.0070.00914.33