3v4l.org

run code in 300+ PHP versions simultaneously
<?php $navigation = array( array( "title" => "Overzicht", "enabled" => 0, "submenu" => array( array( "title" => "Dashboard", "url" => "dashboard/", "module" => "Home", "icon" => "icon-home", "userlevel" => 0, "enabled" => 1 ), array( "title" => "Mijn statistieken", "url" => "user/stats/", "module" => "User", "icon" => "icon-stats", "userlevel" => 60, "enabled" => 1 ) ) ), array( "title" => "Acties", "enabled" => 1, "submenu" => array( array( "title" => "Alle acties", "url" => "action/", "module" => "Action", "icon" => "icon-list-alt", "userlevel" => 0, "enabled" => 0 ), array( "title" => "Mijn acties", "url" => "action/:user_id/", "module" => "Action", "icon" => "icon-list", "userlevel" => 60, "enabled" => 1 ), array( "title" => "Nieuwe actie", "url" => "new/", "module" => "Action", "icon" => "icon-plus", "userlevel" => 80, "enabled" => 1 ) ) ) ); $filterFunc = function($arr) use (&$filterFunc) { foreach ($arr as &$v) { if (!$v["enabled"]) unset($v); if (isset($v["userlevel"])) { if (($v["userlevel"] > 60)) unset($v); } if (isset($v["submenu"])) { $filterFunc($v["submenu"]); } } return $arr; }; $navigation = $filterFunc($navigation); var_dump($navigation);

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)
8.3.60.0060.01316.75
8.3.50.0260.00716.47
8.3.40.0150.00618.84
8.3.30.0100.00718.67
8.3.20.0030.00618.60
8.3.10.0050.00320.66
8.3.00.0000.01117.63
8.2.180.0120.00616.62
8.2.170.0150.00022.96
8.2.160.0120.00321.14
8.2.150.0080.00824.18
8.2.140.0060.00324.66
8.2.130.0030.00626.16
8.2.120.0070.00319.33
8.2.110.0030.00721.03
8.2.100.0080.00417.91
8.2.90.0060.00319.26
8.2.80.0000.00719.25
8.2.70.0030.00617.75
8.2.60.0000.00817.93
8.2.50.0090.00018.07
8.2.40.0000.00918.16
8.2.30.0080.00018.11
8.2.20.0060.00317.72
8.2.10.0030.00617.62
8.2.00.0000.00817.68
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00421.98
8.1.230.0060.00620.93
8.1.220.0060.00318.77
8.1.210.0000.00819.10
8.1.200.0060.00317.48
8.1.190.0040.00417.63
8.1.180.0080.00018.10
8.1.170.0070.00018.87
8.1.160.0040.00418.90
8.1.150.0000.00718.56
8.1.140.0000.00817.38
8.1.130.0040.00417.75
8.1.120.0000.00817.44
8.1.110.0000.00817.36
8.1.100.0000.00717.32
8.1.90.0000.00717.42
8.1.80.0000.00717.40
8.1.70.0040.00417.43
8.1.60.0040.00417.48
8.1.50.0030.00517.49
8.1.40.0040.00417.55
8.1.30.0040.00417.69
8.1.20.0040.00417.71
8.1.10.0060.00317.65
8.1.00.0080.00017.55
8.0.300.0080.00019.94
8.0.290.0020.00516.75
8.0.280.0000.00718.48
8.0.270.0050.00217.14
8.0.260.0020.00516.89
8.0.250.0040.00416.93
8.0.240.0030.00317.00
8.0.230.0030.00316.95
8.0.220.0070.00016.85
8.0.210.0000.00716.82
8.0.200.0060.00016.84
8.0.190.0040.00416.81
8.0.180.0030.00616.95
8.0.170.0030.00616.85
8.0.160.0000.00716.87
8.0.150.0050.00316.73
8.0.140.0000.01016.91
8.0.130.0060.00013.39
8.0.120.0070.00016.86
8.0.110.0000.00716.79
8.0.100.0040.00416.77
8.0.90.0040.00416.83
8.0.80.0000.01616.79
8.0.70.0080.00016.92
8.0.60.0080.00016.83
8.0.50.0000.00816.79
8.0.30.0070.01117.27
8.0.20.0110.01016.95
8.0.10.0040.00416.90
8.0.00.0160.00416.82
7.4.330.0030.00313.01
7.4.320.0000.00616.59
7.4.300.0060.00016.58
7.4.290.0070.00016.58
7.4.280.0020.00516.40
7.4.270.0050.00316.56
7.4.260.0060.00013.29
7.4.250.0060.00316.57
7.4.240.0030.00316.37
7.4.230.0020.00516.50
7.4.220.0070.01416.56
7.4.210.0070.01016.56
7.4.200.0000.00716.61
7.4.190.0050.00216.68
7.4.160.0140.00516.53
7.4.150.0070.01316.45
7.4.140.0090.00916.54
7.4.130.0110.00716.56
7.4.120.0100.00816.40
7.4.110.0070.01116.57
7.4.100.0070.01116.41
7.4.90.0090.01016.63
7.4.80.0090.01619.39
7.4.70.0090.00916.44
7.4.60.0090.00916.29
7.4.50.0090.00016.60
7.4.40.0050.00816.50
7.4.30.0120.00616.56
7.4.00.0090.00915.11
7.3.330.0030.00313.40
7.3.320.0060.00013.30
7.3.310.0000.00816.19
7.3.300.0000.00716.24
7.3.290.0070.01416.34
7.3.280.0090.01016.40
7.3.270.0090.00916.55
7.3.260.0160.00416.68
7.3.250.0130.00616.52
7.3.240.0120.00616.34
7.3.230.0140.00916.43
7.3.210.0110.00716.41
7.3.200.0090.00916.65
7.3.190.0140.00316.66
7.3.180.0030.01316.64
7.3.170.0080.01116.45
7.3.160.0090.00916.40
7.3.120.0040.00714.91
7.2.330.0150.00516.59
7.2.320.0040.02116.79
7.2.310.0100.01016.80
7.2.300.0030.01416.64
7.2.290.0120.00616.82
7.2.00.0040.00719.32
7.1.100.0080.00318.03
7.1.70.0030.00716.88
7.1.60.0130.01019.40
7.1.50.0040.01816.98
7.1.00.0030.04322.33
7.0.200.0150.00314.95
7.0.140.0070.07321.93
7.0.120.0070.06322.04
7.0.60.0200.06020.05
7.0.50.0070.08017.96
7.0.40.0000.07717.71
7.0.30.0070.05017.79
7.0.20.0070.05317.69
7.0.10.0030.08317.71
7.0.00.0070.08717.71
5.6.280.0100.06721.05
5.6.210.0070.04720.61
5.6.200.0030.09018.20
5.6.190.0130.07718.15
5.6.180.0070.07718.14
5.6.170.0030.04318.15
5.6.160.0070.04718.21
5.6.150.0100.08018.19
5.6.140.0070.08018.19
5.6.130.0070.06018.23
5.6.120.0100.07718.21
5.6.110.0000.06018.14
5.6.100.0030.08718.25
5.6.90.0100.07018.16
5.6.80.0070.07317.54
5.6.70.0000.07317.55
5.6.60.0000.04017.54
5.6.50.0030.03717.69
5.6.40.0000.04017.63
5.6.30.0000.04017.54
5.6.20.0000.04017.60
5.6.10.0000.04017.57
5.6.00.0030.03717.56
5.5.350.0300.07320.36
5.5.340.0000.08717.95
5.5.330.0100.06018.03
5.5.320.0030.05017.98
5.5.310.0070.03717.99
5.5.300.0130.05317.98
5.5.290.0070.05718.07
5.5.280.0030.07717.98
5.5.270.0030.07718.08
5.5.260.0070.08017.97
5.5.250.0030.06317.74
5.5.240.0170.07017.38
5.5.230.0070.03717.32
5.5.220.0000.04017.31
5.5.210.0100.03017.46
5.5.200.0030.04017.44
5.5.190.0070.03317.34
5.5.180.0130.02717.37
5.5.160.0000.04017.39
5.5.150.0000.04017.30
5.5.140.0070.04017.29
5.5.130.0000.04017.30
5.5.120.0000.04017.40
5.5.110.0070.03317.30
5.5.100.0070.03317.24
5.5.90.0030.03717.34
5.5.80.0070.03317.27
5.5.70.0000.04317.20
5.5.60.0000.03717.20
5.5.50.0100.03017.22
5.5.40.0070.03317.19
5.5.30.0100.03017.18
5.5.20.0000.04017.22
5.5.10.0070.03317.33
5.5.00.0200.06717.22
5.4.450.0100.08319.39
5.4.440.0070.07719.38
5.4.430.0070.06319.21
5.4.420.0030.07319.21
5.4.410.0100.07319.23
5.4.400.0130.07019.01
5.4.390.0100.07719.03
5.4.380.0030.03719.04
5.4.370.0000.04019.03
5.4.360.0000.04019.27
5.4.350.0000.04019.03
5.4.340.0000.04019.00
5.4.320.0070.03719.01
5.4.310.0030.04318.99
5.4.300.0070.03319.05
5.4.290.0030.03719.09
5.4.280.0030.04019.27
5.4.270.0030.03719.14
5.4.260.0070.03319.12
5.4.250.0030.03719.12
5.4.240.0000.04019.05
5.4.230.0030.03718.94
5.4.220.0030.03719.06
5.4.210.0000.04019.04
5.4.200.0030.03719.01
5.4.190.0000.04019.11
5.4.180.0030.03719.25
5.4.170.0030.04718.95
5.4.160.0170.07018.97
5.4.150.0100.06019.00
5.4.140.0070.05016.44
5.4.130.0100.06716.29
5.4.120.0000.06716.54
5.4.110.0100.07016.49
5.4.100.0100.06716.43
5.4.90.0030.07316.46
5.4.80.0070.04316.38
5.4.70.0070.07316.39
5.4.60.0030.07316.33
5.4.50.0170.04016.36
5.4.40.0130.03316.41
5.4.30.0100.06716.52
5.4.20.0000.05016.32
5.4.10.0030.06016.37
5.4.00.0070.08315.84
5.3.290.0000.04014.89
5.3.280.0000.04714.70
5.3.270.0000.08014.73
5.3.260.0070.07714.61
5.3.250.0000.08014.65
5.3.240.0200.06014.66
5.3.230.0100.07014.64
5.3.220.0100.03714.66
5.3.210.0130.06714.60
5.3.200.0100.05714.63
5.3.190.0070.04014.43
5.3.180.0070.04014.56
5.3.170.0000.04314.67
5.3.160.0000.08314.58
5.3.150.0100.07314.54
5.3.140.0030.04014.62
5.3.130.0030.04314.63
5.3.120.0100.07714.55
5.3.110.0070.08014.60
5.3.100.0100.04014.12
5.3.90.0100.07014.02
5.3.80.0070.04314.02
5.3.70.0070.07314.07
5.3.60.0030.07314.22
5.3.50.0100.07313.85
5.3.40.0100.07314.17
5.3.30.0170.04013.96
5.3.20.0130.04013.91
5.3.10.0200.05313.70
5.3.00.0030.07313.66
5.2.170.0000.05711.09
5.2.160.0100.06011.06
5.2.150.0000.05711.10
5.2.140.0100.04311.29
5.2.130.0030.06711.08
5.2.120.0030.06711.08
5.2.110.0100.05710.94
5.2.100.0070.06311.25
5.2.90.0070.05011.00
5.2.80.0030.06311.09
5.2.70.0070.04711.13
5.2.60.0070.06310.84
5.2.50.0000.05311.01
5.2.40.0070.05711.03
5.2.30.0100.05710.94
5.2.20.0070.04310.88
5.2.10.0070.06011.00
5.2.00.0000.06710.87
5.1.60.0030.0539.98
5.1.50.0100.01710.07
5.1.40.0070.0379.90
5.1.30.0030.05710.29
5.1.20.0100.05010.38
5.1.10.0230.03710.10
5.1.00.0030.06310.00
5.0.50.0070.0438.57
5.0.40.0000.0438.46
5.0.30.0030.0408.46
5.0.20.0030.0208.46
5.0.10.0030.0238.46
5.0.00.0030.0308.46
4.4.90.0070.0338.46
4.4.80.0030.0208.46
4.4.70.0000.0238.46
4.4.60.0000.0178.46
4.4.50.0030.0178.46
4.4.40.0000.0278.46
4.4.30.0030.0138.46
4.4.20.0030.0378.46
4.4.10.0000.0208.46
4.4.00.0000.0278.46
4.3.110.0030.0208.46
4.3.100.0030.0238.46
4.3.90.0030.0178.46
4.3.80.0030.0238.46
4.3.70.0030.0138.46
4.3.60.0030.0208.46
4.3.50.0000.0178.46
4.3.40.0000.0238.46
4.3.30.0000.0338.46
4.3.20.0000.0238.46
4.3.10.0000.0278.46
4.3.00.0000.0208.46

preferences:
47.5 ms | 401 KiB | 5 Q