3v4l.org

run code in 300+ PHP versions simultaneously
<?php class thing{ public function __construct(){ $this->scripts = array( "js" => array(), "css" => array() ); } public function grab_scripts(){ foreach($this->scripts['js'] as $path){ echo '<script type="text/javascript" src="' . $path . '></script>'; } foreach($this->scripts['css'] as $path){ echo '<link type="text/css" rel="stylesheet" href="' . $path . '"/>'; } } $thing = new thing(); $thing->grab_scripts();

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.290.0070.05612.50
5.4.280.0120.06312.40
5.4.270.0180.07012.40
5.4.260.0100.04112.40
5.4.250.0110.04912.40
5.4.240.0110.05412.40
5.4.230.0090.04012.39
5.4.220.0060.04412.39
5.4.210.0080.04312.39
5.4.200.0090.06212.39
5.4.190.0070.07112.38
5.4.180.0100.06612.38
5.4.170.0080.04412.39
5.4.160.0300.09012.39
5.4.150.0140.07912.38
5.4.140.0130.05512.08
5.4.130.0120.04512.06
5.4.120.0380.06512.02
5.4.110.0110.06712.02
5.4.100.0120.05712.02
5.4.90.0200.08112.02
5.4.80.0110.07912.02
5.4.70.0330.11912.01
5.4.60.0080.05612.02
5.4.50.0110.05112.02
5.4.40.0130.05212.00
5.4.30.0060.07512.00
5.4.20.0070.05512.00
5.4.10.0200.08912.00
5.4.00.0230.09011.49
5.3.280.0110.05812.71
5.3.270.0100.05812.73
5.3.260.0120.04812.72
5.3.250.0130.05412.72
5.3.240.0210.08612.71
5.3.230.0180.08012.71
5.3.220.0350.14312.68
5.3.210.0070.04912.68
5.3.200.0090.03912.68
5.3.190.0050.04112.68
5.3.180.0060.04012.68
5.3.170.0100.03712.67
5.3.160.0070.03912.67
5.3.150.0070.04712.68
5.3.140.0100.05412.66
5.3.130.0090.05712.66
5.3.120.0070.05412.66
5.3.110.0080.04612.66
5.3.100.0080.05412.13
5.3.90.0100.04312.11
5.3.80.0230.06612.12
5.3.70.0170.07412.10
5.3.60.0050.04612.09
5.3.50.0120.05012.03
5.3.40.0120.06212.03
5.3.30.0100.04511.99
5.3.20.0070.03911.77
5.3.10.0100.03411.74
5.3.00.0070.04311.72

preferences:
137.1 ms | 1394 KiB | 7 Q