3v4l.org

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

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.0170.06020.21
7.0.10.0070.04020.16
7.0.00.0070.06320.07
5.6.170.0330.06320.55
5.6.160.0000.04720.57
5.6.150.0030.07318.21
5.6.140.0000.04718.15
5.6.130.0000.04318.22
5.6.120.0070.08021.01
5.6.110.0070.08021.11
5.6.100.0070.08721.04
5.6.90.0030.07021.01
5.6.80.0130.07320.36
5.5.310.0370.06320.32
5.5.300.0030.08317.95
5.5.290.0030.08718.05
5.5.280.0030.05320.76
5.5.270.0130.07720.75
5.5.260.0030.07720.72
5.5.250.0130.07320.46
5.5.240.0430.06020.37

preferences:
139.9 ms | 1394 KiB | 7 Q