3v4l.org

run code in 300+ PHP versions simultaneously
<?php class B { public $c=12; } class A { public $va = function() { return 15 }; } $o=new A; var_dump($o); var_dump(($o->va)());

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.0270.04720.16
7.0.10.0030.04720.07
7.0.00.0170.04020.25
5.6.170.0300.04320.71
5.6.160.0070.09020.47
5.6.150.0100.06018.14
5.6.140.0030.04318.18
5.6.130.0000.08718.14
5.6.120.0100.07721.12
5.6.110.0100.07720.91
5.6.100.0070.07021.11
5.6.90.0030.08720.88
5.6.80.0130.07720.42
5.5.310.0270.05020.28
5.5.300.0030.05318.08
5.5.290.0130.07718.09
5.5.280.0030.09720.85
5.5.270.0030.08020.75
5.5.260.0030.08320.86
5.5.250.0130.07720.54
5.5.240.0270.06720.12

preferences:
135.69 ms | 1394 KiB | 7 Q