3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public function __construct() : Foo { return "bar"; } } $foo = new Foo(); var_dump($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.3.50.0050.00416.74
7.3.70.0100.00614.67
7.3.60.0080.00414.58
7.3.50.0070.00714.55
7.3.40.0090.00614.43
7.3.30.0070.01014.59
7.3.20.0160.00614.57
7.3.10.0180.00514.70
7.3.00.0060.01314.65
7.2.200.0060.00914.54
7.2.190.0060.01014.71
7.2.180.0120.00614.79
7.2.170.0100.00314.67
7.2.160.0050.01114.51
7.2.150.0120.00414.89
7.2.140.0150.00314.63
7.2.130.0120.01214.82
7.2.120.0140.01014.67
7.2.110.0170.00014.62
7.2.100.0100.01014.73
7.2.90.0110.01814.86
7.2.80.0120.00415.11
7.2.70.0140.01015.04
7.2.60.0180.00714.84
7.2.50.0140.01015.03
7.2.40.0170.01014.51
7.2.30.0240.00614.81
7.2.20.0130.00315.06
7.2.10.0200.00314.74
7.2.00.0170.00314.51
7.1.300.0910.00913.66
7.1.290.0120.00613.47
7.1.280.0100.00613.93
7.1.270.0130.00713.65
7.1.260.0090.00913.73
7.1.250.0160.00713.76

preferences:
52.44 ms | 635 KiB | 4 Q