3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public static function keys() { return array(1,2,3); } } class B { private $config = array('abcd' => C::keys()); }

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.250.0070.05318.90
5.4.240.0100.05019.00
5.4.230.0170.06018.76
5.4.220.0130.05018.99
5.4.210.0070.08018.79
5.4.200.0170.04318.99
5.4.190.0230.06319.00
5.4.180.0070.05018.98
5.4.170.0030.05718.61
5.4.160.0070.05718.98
5.4.150.0070.05318.95
5.4.140.0070.05016.53
5.4.130.0070.05016.60
5.4.120.0200.04016.62
5.4.110.0030.05316.45
5.4.100.0130.04016.41
5.4.90.0070.04716.58
5.4.80.0070.05016.69
5.4.70.0130.04316.44
5.4.60.0130.06016.56
5.4.50.0030.05016.54
5.4.40.0070.07016.50
5.4.30.0070.07016.54
5.4.20.0070.07016.54
5.4.10.0070.05716.38
5.4.00.0100.04716.03
5.3.280.0070.05014.50
5.3.270.0130.04314.61
5.3.260.0100.07014.69
5.3.250.0030.05314.57
5.3.240.0030.05314.68
5.3.230.0070.05014.78
5.3.220.0130.04314.54
5.3.210.0170.04314.79
5.3.200.0030.05714.65
5.3.190.0100.07314.63
5.3.180.0070.05014.74
5.3.170.0100.04714.46
5.3.160.0170.04314.56
5.3.150.0130.04314.56
5.3.140.0200.04714.46
5.3.130.0070.06314.69
5.3.120.0170.06014.53
5.3.110.0170.06714.72
5.3.100.0070.05314.02
5.3.90.0100.05714.09
5.3.80.0030.05314.00
5.3.70.0070.05014.18
5.3.60.0130.04314.07
5.3.50.0100.06714.13
5.3.40.0070.05014.17
5.3.30.0170.04013.99
5.3.20.0070.04713.85
5.3.10.0030.05013.73
5.3.00.0030.05313.49

preferences:
135 ms | 1394 KiB | 7 Q