3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Testing: $var\n"; } class foo { var $arr = array("test"); var $v[0] = "test"; function bar($str) { $this->arr[0]($str); $this->v[0]($str); } } $foo = new foo; $foo->bar("bla");

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.0270.07720.09
7.0.10.0130.05020.08
7.0.00.0100.05720.06
5.6.170.0130.05020.47
5.6.160.0070.08720.46
5.6.150.0070.08018.27
5.6.140.0070.08018.17
5.6.130.0070.04718.14
5.6.120.0070.07321.15
5.6.110.0130.08021.12
5.6.100.0130.07021.11
5.6.90.0070.04721.11
5.6.80.0030.04020.41
5.5.310.0200.05320.25
5.5.300.0070.08318.07
5.5.290.0000.04318.05
5.5.280.0070.04320.68
5.5.270.0100.06320.84
5.5.260.0100.08020.76
5.5.250.0000.08720.47
5.5.240.0230.07320.36

preferences:
139.93 ms | 1394 KiB | 7 Q