3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Dog {} class Bulldog {} interface DogFeeder { function feed(Dog $dog); } function feedChihuahua(DogFeeder $feeder) { $feeder->feed(new Chihuahua()); // this code is OK } class BulldogFeeder implements DogFeeder { function feed(Bulldog $dog) { } } // feedChihuahua(new BulldogFeeder());
based on UQleg

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.85
7.3.120.0140.00814.66
7.3.110.0080.01214.44
7.3.100.0150.00914.74
7.3.90.0080.01314.55
7.3.80.0120.01614.81
7.3.70.0090.00914.40
7.3.60.0120.00814.30
7.3.50.0140.00314.53
7.3.40.0150.00414.72
7.3.30.0110.00414.69
7.3.20.0100.00414.66
7.3.10.0090.00614.86
7.3.00.0110.00414.86
7.2.250.0110.01114.74
7.2.240.0130.01114.70
7.2.230.0160.00814.77
7.2.220.0050.01514.80
7.2.210.0110.00614.84
7.2.200.0110.00814.57
7.2.190.0140.00714.97
7.2.180.0080.00814.74
7.2.170.0060.00914.58
7.1.330.0160.00513.89
7.1.320.0170.00313.80
7.1.310.0150.00713.99
7.1.300.0110.00913.60
7.1.290.0070.00813.54
7.1.280.0070.00713.89
7.1.270.0040.01113.63
7.1.260.0080.00813.63