3v4l.org

run code in 300+ PHP versions simultaneously
<?php class version_info { private $vi = array(); function __construct() { //$this->vi = array(); } function add($name, $filename) { $this->vi[$filename] = array( 'name' => $name, 'filename' => $filename ); } function dump() { // temporary for debugging foreach ($this->vi as $item { echo $item['name'] . ' ' . $item['filename'] . "\n"; } } } $sc_version_info = new version_info(); $sc_version_info->add('Test', '/admin/test.php'); f('Test2', '/admin/test2.php'); $sc_version_info->dump(); function f($a, $b) { global $sc_version_info; $sc_version_info->add($a, $b); }

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)
5.4.220.0130.03912.40
5.4.210.0130.04212.40
5.4.200.0110.04712.40
5.4.190.0130.04512.39
5.4.180.0120.04712.39
5.4.170.0100.04612.40
5.4.160.0120.04512.39
5.4.150.0140.04412.39
5.4.140.0100.04912.09
5.4.130.0090.04512.06
5.4.120.0110.04412.03
5.4.110.0140.03912.03
5.4.100.0120.04312.03
5.4.90.0090.04312.03
5.4.80.0140.03912.02
5.4.70.0110.04112.02
5.4.60.0120.04212.02
5.4.50.0160.03912.02
5.4.40.0130.04212.01
5.4.30.0120.04112.01
5.4.20.0110.04312.01
5.4.10.0100.04212.01
5.4.00.0090.04311.50
5.3.270.0130.04312.72
5.3.260.0150.04512.72
5.3.250.0160.04612.72
5.3.240.0210.04012.72
5.3.230.0150.04512.71
5.3.220.0120.04312.68
5.3.210.0150.04712.68
5.3.200.0160.05012.68
5.3.190.0190.06212.68
5.3.180.0160.04612.67
5.3.170.0300.06312.67
5.3.160.0200.05112.67
5.3.150.0150.05112.67
5.3.140.0210.05012.66
5.3.130.0140.05412.66
5.3.120.0140.05012.66
5.3.110.0130.05312.66
5.3.100.0130.05412.12
5.3.90.0180.04912.10
5.3.80.0140.05012.08
5.3.70.0180.04712.09
5.3.60.0250.04312.08
5.3.50.0160.04912.02
5.3.40.0160.04712.02
5.3.30.0120.04611.98
5.3.20.0130.04911.76
5.3.10.0160.04111.73
5.3.00.0130.04511.71

preferences:
141.35 ms | 1394 KiB | 7 Q