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.0300.08020.05
7.0.10.0100.04720.30
7.0.00.0070.08320.16
5.6.170.0200.06020.58
5.6.160.0030.06720.44
5.6.150.0070.06318.14
5.6.140.0070.05318.15
5.6.130.0030.06718.19
5.6.120.0130.08021.14
5.6.110.0100.08321.08
5.6.100.0170.06721.03
5.6.90.0130.08321.07
5.6.80.0000.04720.51
5.5.310.0270.03320.30
5.5.300.0100.08317.96
5.5.290.0030.04717.95
5.5.280.0030.04020.84
5.5.270.0130.07320.76
5.5.260.0070.08320.88
5.5.250.0170.07320.57
5.5.240.0130.07020.00

preferences:
141.72 ms | 1394 KiB | 7 Q