3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new class { function a() { return 1; } public $b = new class { function ba(){ return 2; } public $bb = new class { function bba(){ return 3; } } } }; $obj->a(); $obj->b->ba(); var_dump($obj->b->bb->bba());

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.0370.07020.30
7.0.10.0070.08720.33
7.0.00.0070.07720.15
5.6.170.0330.06320.55
5.6.160.0070.08020.50
5.6.150.0100.07018.25
5.6.140.0070.08318.27
5.6.130.0100.04318.27
5.6.120.0170.06321.01
5.6.110.0070.07320.95
5.6.100.0100.07721.13
5.6.90.0100.08321.07
5.6.80.0070.07320.40
5.5.310.0230.05020.36
5.5.300.0070.05317.91
5.5.290.0100.06717.98
5.5.280.0070.06720.76
5.5.270.0130.08320.79
5.5.260.0070.04020.86
5.5.250.0070.08320.68
5.5.240.0230.07320.27

preferences:
143.9 ms | 1394 KiB | 7 Q