3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new class { public static funciton assertTrue() { echo "assert true"; } public function myTest() { $this->assertTrue('bar'); } }; $foo->myTest();

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.0.20.0330.07320.24
7.0.10.0100.04020.16
7.0.00.0100.08720.10
5.6.170.0330.07320.53
5.6.160.0230.07020.50
5.6.150.0070.07018.29
5.6.140.0100.06018.29
5.6.130.0070.08318.28
5.6.120.0030.05020.89
5.6.110.0070.08020.98
5.6.100.0070.07020.97
5.6.90.0030.07320.98
5.6.80.0130.08020.39
5.5.310.0500.03320.23
5.5.300.0070.05018.03
5.5.290.0130.07317.95
5.5.280.0130.07720.86
5.5.270.0130.07320.86
5.5.260.0100.05720.89
5.5.250.0030.04020.75
5.5.240.4200.03020.27

preferences:
144.55 ms | 1394 KiB | 7 Q