3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($var) { echo "Test $var\n"; } class foo { var @$arr = array("test"); function bar() { $this->arr[0]('testvalue'); } } $a = new foo(); $a->bar(); ?>

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.0300.04320.16
7.0.10.0100.08720.12
7.0.00.0030.05720.23
5.6.170.0370.06720.50
5.6.160.0070.06720.55
5.6.150.0100.04718.30
5.6.140.0030.04318.17
5.6.130.0030.04018.18
5.6.120.0100.04021.00
5.6.110.0030.04020.99
5.6.100.0130.07721.01
5.6.90.0100.05320.97
5.6.80.0130.06720.39
5.5.310.0330.05720.38
5.5.300.0130.04017.98
5.5.290.0030.07717.97
5.5.280.0200.04320.83
5.5.270.0170.07020.68
5.5.260.0070.04320.86
5.5.250.0200.07320.68
5.5.240.0200.07720.36

preferences:
141.43 ms | 1394 KiB | 7 Q