3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = function(){echo "closure time!";}; class myClass(){ } $obj = new myClass; $c->call($obj);

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.0170.04320.21
7.0.10.0070.06720.26
7.0.00.0070.08320.07
5.6.170.0230.03720.56
5.6.160.0070.08720.50
5.6.150.0130.03018.19
5.6.140.0100.07318.17
5.6.130.0130.07018.23
5.6.120.0070.05321.14
5.6.110.0070.08321.09
5.6.100.0170.07321.14
5.6.90.0230.04020.97
5.6.80.0030.04020.36
5.5.310.0100.04720.36
5.5.300.0000.08718.05
5.5.290.0130.06017.95
5.5.280.0100.08020.89
5.5.270.0070.04020.87
5.5.260.0070.04020.73
5.5.250.0070.08020.61
5.5.240.0370.05320.14

preferences:
138.78 ms | 1394 KiB | 7 Q