3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { var $themeMap = [ "microsite" => [ "toc" => "microsite", "global-ui" => "microsite" ] ]; public function getTOCFromTheme($theme) { if(array_key_exists($theme, $this->themeMap) && array_key_exists["toc", $this->themeMap[$theme]]) { return $this->$themeMap[$theme]["toc"]; } else { return "default"; } } } ?>

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.260.0070.07719.11
5.4.250.0170.05019.09
5.4.240.0230.06018.63
5.4.230.0030.05718.64
5.4.220.0070.07318.90
5.4.210.0170.05319.02
5.4.200.0230.06018.96
5.4.190.0100.07718.90
5.4.180.0030.07718.94
5.4.170.0100.07018.99
5.4.160.0170.06718.82
5.4.150.0130.07318.77
5.4.140.0070.07016.54
5.4.130.0130.06316.52
5.4.120.0130.05716.52
5.4.110.0100.07316.52
5.4.100.0130.06716.39
5.4.90.0070.06316.65
5.4.80.0130.06016.45
5.4.70.0070.07316.40
5.4.60.0070.07316.45
5.4.50.0100.04716.50
5.4.40.0100.06016.52
5.4.30.0100.04316.62
5.4.20.0200.06016.53
5.4.10.0000.06316.30
5.4.00.0100.07015.78
5.3.280.0070.05014.59
5.3.270.0100.05014.68
5.3.260.0100.05314.77
5.3.250.0200.04714.68
5.3.240.0100.05714.59
5.3.230.0070.06714.75
5.3.220.0070.07014.58
5.3.210.0070.06314.65
5.3.200.0130.06714.61
5.3.190.0230.05314.64
5.3.180.0000.07314.64
5.3.170.0170.05014.72
5.3.160.0130.06314.55
5.3.150.0100.07014.63
5.3.140.0070.05014.70
5.3.130.0070.07314.56
5.3.120.0100.05014.53
5.3.110.0070.05314.62
5.3.100.0170.04714.10
5.3.90.0070.05014.10
5.3.80.0170.03713.93
5.3.70.0070.07014.07
5.3.60.0070.05014.07
5.3.50.0130.06314.16
5.3.40.0030.06314.03
5.3.30.0070.07314.08
5.3.20.0070.05713.77
5.3.10.0030.05713.70
5.3.00.0070.04713.70
5.2.170.0030.05711.22
5.2.160.0100.03711.04
5.2.150.0030.06011.35
5.2.140.0130.05311.21
5.2.130.0100.05011.06
5.2.120.0030.05711.17
5.2.110.0100.04011.09
5.2.100.0070.04311.16
5.2.90.0100.04711.06
5.2.80.0070.03711.05
5.2.70.0030.04311.05
5.2.60.0070.04011.11
5.2.50.0130.04011.09
5.2.40.0070.05311.00
5.2.30.0070.04311.14
5.2.20.0100.05310.78
5.2.10.0030.05310.68
5.2.00.0000.06310.55
5.1.60.0000.03710.05
5.1.50.0100.02710.07
5.1.40.0000.03710.01
5.1.30.0070.04710.29
5.1.20.0100.04710.30
5.1.10.0130.02310.10
5.1.00.0030.04310.10
5.0.50.0030.0308.52
5.0.40.0130.0208.41
5.0.30.0070.0378.25
5.0.20.0070.0238.27
5.0.10.0070.0278.36
5.0.00.0030.0438.39
4.4.90.0000.0236.10
4.4.80.0030.0236.10
4.4.70.0000.0276.10
4.4.60.0130.0176.10
4.4.50.0070.0276.10
4.4.40.0070.0306.10
4.4.30.0030.0306.10
4.4.20.0030.0206.10
4.4.10.0000.0336.10
4.4.00.0030.0436.10
4.3.110.0000.0236.10
4.3.100.0030.0276.10
4.3.90.0030.0206.10
4.3.80.0030.0306.10
4.3.70.0030.0206.10
4.3.60.0030.0306.10
4.3.50.0100.0236.10
4.3.40.0000.0376.10
4.3.30.0030.0206.10
4.3.20.0030.0206.10
4.3.10.0100.0206.10
4.3.00.0070.0277.15

preferences:
136.95 ms | 1394 KiB | 7 Q