3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestClass { private 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.0030.05718.94
5.4.250.0030.05718.74
5.4.240.0100.05318.65
5.4.230.0070.06018.73
5.4.220.0130.06719.01
5.4.210.0070.05318.95
5.4.200.0100.05018.70
5.4.190.0100.05018.83
5.4.180.0070.05318.93
5.4.170.0070.05318.95
5.4.160.0070.05319.00
5.4.150.0100.05318.96
5.4.140.0030.05316.38
5.4.130.0070.07016.39
5.4.120.0070.05016.39
5.4.110.0130.05716.48
5.4.100.0030.05316.41
5.4.90.0130.05316.50
5.4.80.0100.05016.39
5.4.70.0200.05716.45
5.4.60.0030.05316.48
5.4.50.0100.07016.59
5.4.40.0070.05016.52
5.4.30.0100.04716.40
5.4.20.0170.06016.52
5.4.10.0070.07716.37
5.4.00.0130.05015.74
5.3.280.0100.05014.61
5.3.270.0130.05014.69
5.3.260.0100.05714.62
5.3.250.0170.04014.76
5.3.240.0100.04714.78
5.3.230.0030.05314.61
5.3.220.0070.05314.57
5.3.210.0000.06014.63
5.3.200.0100.05014.79
5.3.190.0070.05014.73
5.3.180.0070.05014.69
5.3.170.0130.04314.65
5.3.160.0070.05714.64
5.3.150.0070.05014.39
5.3.140.0170.06314.63
5.3.130.0000.06714.61
5.3.120.0130.07314.68
5.3.110.0130.07314.37
5.3.100.0070.05314.03
5.3.90.0030.05014.23
5.3.80.0070.05014.02
5.3.70.0030.05314.10
5.3.60.0030.05014.08
5.3.50.0130.04714.05
5.3.40.0000.07313.93
5.3.30.0070.05013.92
5.3.20.0000.05713.78
5.3.10.0030.05713.73
5.3.00.0070.04713.71
5.2.170.0030.04311.13
5.2.160.0100.06010.96
5.2.150.0130.05011.10
5.2.140.0030.05011.10
5.2.130.0070.04011.06
5.2.120.0030.06011.31
5.2.110.0130.03311.19
5.2.100.0030.05711.09
5.2.90.0030.04711.18
5.2.80.0100.04311.06
5.2.70.0070.04711.09
5.2.60.0170.04311.12
5.2.50.0000.05010.97
5.2.40.0100.04711.17
5.2.30.0070.03711.14
5.2.20.0170.03310.91
5.2.10.0070.04010.91
5.2.00.0030.06310.64
5.1.60.0100.03010.00
5.1.50.0070.04310.05
5.1.40.0030.0509.95
5.1.30.0130.04710.23
5.1.20.0030.04310.35
5.1.10.0030.04710.11
5.1.00.0000.06010.18
5.0.50.0170.0308.54
5.0.40.0070.0378.45
5.0.30.0070.0438.26
5.0.20.0100.0308.14
5.0.10.0070.0338.14
5.0.00.0000.0538.25
4.4.90.0030.0236.11
4.4.80.0070.0236.11
4.4.70.0030.0306.11
4.4.60.0030.0276.11
4.4.50.0070.0206.11
4.4.40.0070.0436.11
4.4.30.0030.0276.11
4.4.20.0000.0306.11
4.4.10.0000.0306.11
4.4.00.0000.0376.11
4.3.110.0000.0236.11
4.3.100.0030.0236.11
4.3.90.0070.0206.11
4.3.80.0000.0436.11
4.3.70.0000.0236.11
4.3.60.0000.0276.11
4.3.50.0070.0236.11
4.3.40.0000.0436.11
4.3.30.0070.0236.11
4.3.20.0070.0236.11
4.3.10.0030.0206.11
4.3.00.0000.01312.80

preferences:
141.6 ms | 1394 KiB | 7 Q