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.0070.05320.06
7.0.10.0070.08720.25
7.0.00.0030.06320.33
5.6.170.0230.07320.59
5.6.160.0000.09320.44
5.6.150.0130.05018.15
5.6.140.0070.07718.23
5.6.130.0070.08018.24
5.6.120.0070.07320.97
5.6.110.0100.06021.03
5.6.100.0000.08321.09
5.6.90.0130.03021.02
5.6.80.0070.08720.49
5.5.310.0170.04320.56
5.5.300.0070.08317.96
5.5.290.0100.08018.09
5.5.280.0070.05720.78
5.5.270.0070.08020.80
5.5.260.0170.03720.64
5.5.250.0100.08020.57
5.5.240.0100.07020.26

preferences:
140.81 ms | 1386 KiB | 7 Q