3v4l.org

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

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.0470.07320.15
7.0.10.0100.08320.26
7.0.00.0100.07020.16
5.6.160.0130.04720.39
5.6.150.0030.08018.19
5.6.140.0170.06018.26
5.6.130.0070.08318.29
5.6.120.0100.07321.00
5.6.110.0030.04020.98
5.6.100.0100.08021.14
5.6.90.0100.05021.10
5.6.80.0070.07020.39
5.5.300.0130.07017.95
5.5.290.0030.04317.95
5.5.280.0100.05320.86
5.5.270.0130.07720.89
5.5.260.0130.08020.96
5.5.250.0030.08320.59
5.5.240.0330.07020.34

preferences:
138.58 ms | 1394 KiB | 7 Q