3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Insurance{ function clsName(){ echo get_class($this); } } $cl = new Insurance(); $cl->clsName(); Insurance::clsName(); >?

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.0400.07320.22
7.0.10.0170.07720.07
7.0.00.0030.04020.21
5.6.170.0330.05020.50
5.6.160.0070.05020.49
5.6.150.0130.07718.23
5.6.140.0130.08018.15
5.6.130.0170.06018.18
5.6.120.0100.04021.03
5.6.110.0070.04021.00
5.6.100.0030.08721.01
5.6.90.0100.03321.00
5.6.80.0100.08320.36
5.5.310.0270.06720.23
5.5.300.0100.04717.98
5.5.290.0030.07317.94
5.5.280.0070.08720.85
5.5.270.0130.06320.79
5.5.260.0070.03720.88
5.5.250.0030.08320.59
5.5.240.0070.05020.08

preferences:
133.06 ms | 1398 KiB | 7 Q