3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyObj {} function stuff(MyObj $a = new MyObj) { echo $a; } stuff();

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.0330.07320.26
7.0.10.0030.04720.30
7.0.00.0030.07020.16
5.6.170.0300.04320.51
5.6.160.0100.05720.43
5.6.150.0070.05318.13
5.6.140.0100.07018.15
5.6.130.0130.07718.14
5.6.120.0100.04321.00
5.6.110.0130.08020.90
5.6.100.0100.08021.01
5.6.90.0070.07320.95
5.6.80.0030.07020.41
5.5.310.0300.04320.41
5.5.300.0070.06017.95
5.5.290.0030.07718.07
5.5.280.0100.07720.83
5.5.270.0030.05320.97
5.5.260.0100.03720.93
5.5.250.0170.08020.71
5.5.240.0200.07720.19

preferences:
145.13 ms | 1394 KiB | 7 Q