3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Demo { var $id = 1; function getId() { return $this->id; } } var_dump( (new Demo)->getId(); )

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.00.0000.04720.33
5.6.160.0100.03720.50
5.6.150.0130.08018.18
5.6.140.0070.04718.16
5.6.130.0070.04018.15
5.6.120.0100.08021.16
5.6.110.0070.08321.14
5.6.100.0070.08320.89
5.6.90.0030.08720.97
5.6.80.0070.04320.38
5.5.300.0070.08018.05
5.5.290.0030.08717.99
5.5.280.0130.03320.85
5.5.270.0000.08720.87
5.5.260.0030.04320.77
5.5.250.0130.08020.71
5.5.240.0230.05720.19

preferences:
147.01 ms | 1386 KiB | 7 Q