3v4l.org

run code in 300+ PHP versions simultaneously
<?php $testing = 'foo'; $array = ['bar' => 'testing']; function test() { return 'testing'; } class Test { public function output() { echo 'called'; } } $string = 'test'; $test = new Test(); echo ${$array['bar']}; echo PHP_EOL; echo $$array['bar']; echo PHP_EOL; echo ${test()}; echo PHP_EOL; echo $test(); echo PHP_EOL; echo {$$string}->output();

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.1.70.0100.00316.89
7.1.60.0190.00934.73
7.1.50.0160.01634.82
7.1.40.0220.01334.41
7.1.30.0210.01134.36
7.1.20.0260.01734.52
7.1.10.0100.01016.08
7.1.00.0060.00916.30
7.0.200.0080.00616.77
7.0.190.0110.00516.67
7.0.180.0060.00916.25
7.0.170.0100.00315.99
7.0.160.0060.01616.09
7.0.150.0140.00715.98
7.0.140.0070.00916.19
7.0.130.0100.01016.08
7.0.120.0030.01416.24
7.0.110.0100.00616.30
7.0.100.0060.01016.00
7.0.90.0090.00616.07
7.0.80.0030.01116.20
7.0.70.0060.00916.04
7.0.60.0090.00615.96
7.0.50.0090.00616.36
7.0.40.0000.01516.23
7.0.30.0100.00916.37
7.0.20.0060.00916.27
7.0.10.0060.01216.29
7.0.00.0060.01216.31

preferences:
141.5 ms | 1394 KiB | 7 Q