3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Dog {} 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 sULkI

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.0070.00714.87
7.3.120.0120.00814.79
7.3.110.0030.01114.71
7.3.100.0120.00814.58
7.3.90.0060.00314.84
7.3.80.0150.00614.61
7.3.70.0140.00314.61
7.3.60.0030.01214.88
7.3.50.0060.01014.58
7.3.40.0120.00314.72
7.3.30.0060.00914.67
7.3.20.0040.01514.51
7.3.10.0130.00614.76
7.3.00.0060.01314.95
7.2.250.0090.00614.74
7.2.240.0140.00614.83
7.2.230.0060.00914.81
7.2.220.0140.00815.11
7.2.210.0120.01815.05
7.2.200.0130.00614.91
7.2.190.0080.01214.80
7.2.180.0120.00314.55
7.2.170.0130.01014.64
7.1.330.0100.01013.84
7.1.320.0100.01013.84
7.1.310.0120.00713.95
7.1.300.0140.00513.95
7.1.290.0070.00713.60
7.1.280.0100.00313.72
7.1.270.0120.00613.76
7.1.260.0040.01113.86