3v4l.org

run code in 200+ PHP versions simultaneously
<?php class Foo { private $bar; public static function make() { $foo = new static; $foo->bar = 'Hello World!'; return $foo; } public function getBar() { return $this->bar; } } var_dump(Foo::make());

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.0110.00514.78
7.3.120.0080.00614.83
7.3.110.0050.00814.62
7.3.100.0090.00614.62
7.3.90.0040.01714.55
7.3.80.0080.01114.82
7.3.70.0080.01114.61
7.3.60.0150.00514.75
7.3.50.0120.00914.76
7.3.40.0060.01214.63
7.3.30.0060.01314.74
7.3.20.0130.00614.74
7.3.10.0160.00514.78
7.3.00.0110.00314.80
7.2.250.0140.00415.01
7.2.240.0080.00714.94
7.2.230.0070.01214.72
7.2.220.0160.00314.92
7.2.210.0090.00914.87
7.2.200.0080.01214.89
7.2.190.0120.00714.78
7.2.180.0110.00914.91
7.2.170.0120.00714.92
7.2.160.0130.01014.90
7.2.150.0160.00715.01
7.2.140.0150.00715.00
7.2.130.0040.01515.03
7.2.120.0080.01015.07
7.2.110.0100.01014.98
7.2.100.0100.00814.83
7.2.90.0080.00914.93
7.2.80.0140.00314.91
7.2.70.0070.01014.98
7.2.60.0130.00514.79
7.2.50.0110.00815.03
7.2.40.0040.01415.10
7.2.30.0110.00714.80
7.2.20.0120.00614.95
7.2.10.0170.01014.91
7.2.00.0070.01014.76
7.1.330.0070.00913.69
7.1.320.0120.00813.72
7.1.310.0100.00713.68
7.1.300.0500.00613.87
7.1.290.0130.00413.75
7.1.280.0130.00513.72
7.1.270.0120.00713.55
7.1.260.0050.01113.89
7.1.250.0110.00613.79