3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function a(){return 'A'}; } $a = new A; var_dump(new ${!${''}=$a->a()});

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.0170.07320.07
5.6.160.0170.07320.71
5.6.150.0070.08018.12
5.6.140.0070.08018.21
5.6.130.0070.04018.15
5.6.120.0070.08321.03
5.6.110.0100.08021.02
5.6.100.0030.04721.00
5.6.90.0070.08321.13
5.6.80.0170.06720.35
5.5.300.0030.03718.00
5.5.290.0070.03718.07
5.5.280.0070.08320.85
5.5.270.0030.04320.79
5.5.260.0030.04020.96
5.5.250.0130.07020.59
5.5.240.3830.03320.23

preferences:
141.92 ms | 1394 KiB | 7 Q