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"])) { $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.0070.01718.55
8.3.50.0110.00521.21
8.3.40.0180.00018.75
8.3.30.0100.00320.21
8.3.20.0040.00420.34
8.3.10.0090.00021.22
8.3.00.0050.00322.39
8.2.180.0130.00316.63
8.2.170.0080.00822.96
8.2.160.0110.00722.08
8.2.150.0050.00324.18
8.2.140.0040.01124.66
8.2.130.0040.00426.16
8.2.120.0000.00820.79
8.2.110.0060.00320.39
8.2.100.0090.00319.54
8.2.90.0050.00318.16
8.2.80.0060.00318.03
8.2.70.0040.00417.50
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0030.00618.34
8.2.30.0000.00719.47
8.2.20.0000.00717.73
8.2.10.0060.00317.77
8.2.00.0040.00417.66
8.1.280.0040.01225.92
8.1.270.0060.00323.99
8.1.260.0000.00826.35
8.1.250.0030.00528.09
8.1.240.0040.00422.20
8.1.230.0090.00322.67
8.1.220.0090.00017.78
8.1.210.0050.00518.86
8.1.200.0030.00617.35
8.1.190.0030.00617.39
8.1.180.0040.00418.10
8.1.170.0050.00318.59
8.1.160.0040.00418.90
8.1.150.0080.00018.69
8.1.140.0080.00017.51
8.1.130.0030.00317.71
8.1.120.0040.00417.45
8.1.110.0040.00717.43
8.1.100.0000.00717.53
8.1.90.0040.00417.49
8.1.80.0030.00517.52
8.1.70.0000.00717.43
8.1.60.0030.00517.57
8.1.50.0030.00517.54
8.1.40.0080.00017.41
8.1.30.0040.00417.59
8.1.20.0030.00517.59
8.1.10.0040.00417.61
8.1.00.0040.00417.49
8.0.300.0040.00419.93
8.0.290.0040.00417.05
8.0.280.0040.00418.37
8.0.270.0000.00717.18
8.0.260.0050.00316.87
8.0.250.0030.00316.90
8.0.240.0040.00416.91
8.0.230.0040.00416.86
8.0.220.0030.00316.89
8.0.210.0040.00416.93
8.0.200.0030.00316.88
8.0.190.0000.00716.92
8.0.180.0050.00316.85
8.0.170.0030.00616.76
8.0.160.0040.00416.86
8.0.150.0040.00416.94
8.0.140.0040.00416.77
8.0.130.0000.00513.33
8.0.120.0030.00616.82
8.0.110.0000.00816.82
8.0.100.0060.00316.74
8.0.90.0040.00416.81
8.0.80.0050.01216.83
8.0.70.0040.00416.84
8.0.60.0070.00016.94
8.0.50.0040.00416.96
8.0.30.0070.01317.04
8.0.20.0080.01317.40
8.0.10.0040.00417.01
8.0.00.0120.00816.86
7.4.330.0000.00516.71
7.4.320.0000.00616.53
7.4.300.0030.00316.64
7.4.290.0050.00316.53
7.4.280.0030.00316.39
7.4.270.0030.00516.42
7.4.260.0030.00313.30
7.4.250.0040.00416.59
7.4.240.0020.00516.57
7.4.230.0070.00016.71
7.4.220.0100.01216.56
7.4.210.0090.00716.55
7.4.200.0040.00416.54
7.4.190.0000.00716.55
7.4.160.0110.00716.47
7.4.150.0100.00817.40
7.4.140.0140.00917.86
7.4.130.0100.01116.51
7.4.120.0150.00416.58
7.4.110.0040.01316.55
7.4.100.0170.01016.71
7.4.90.0060.01316.40
7.4.80.0140.00519.39
7.4.70.0060.01316.43
7.4.60.0060.01216.61
7.4.50.0000.00516.63
7.4.40.0120.00622.77
7.4.30.0100.00716.63
7.4.00.0070.00714.85
7.3.330.0000.00613.40
7.3.320.0030.00313.40
7.3.310.0040.00416.23
7.3.300.0000.00716.37
7.3.290.0060.00916.50
7.3.280.0060.01016.37
7.3.270.0070.01017.40
7.3.260.0130.00918.24
7.3.250.0070.01516.49
7.3.240.0070.01116.79
7.3.230.0100.01016.39
7.3.210.0120.00616.39
7.3.200.0160.01019.39
7.3.190.0180.00416.51
7.3.180.0180.00016.63
7.3.170.0070.01116.62
7.3.160.0060.01216.37
7.3.120.0030.00714.94
7.2.330.0180.00316.50
7.2.320.0070.01116.71
7.2.310.0120.01316.93
7.2.300.0070.01116.82
7.2.290.0140.00516.77
7.1.200.0030.01015.80
7.1.70.0090.00617.31
7.1.60.0040.01819.17
7.1.50.0100.01617.14
7.1.00.0000.06722.25
7.0.200.0040.00416.70
7.0.140.0000.07722.04
7.0.100.0070.08019.96
7.0.90.0170.07319.88
7.0.80.0030.08019.95
7.0.70.0100.07720.17
7.0.60.0170.07019.80
7.0.50.0100.06020.36
7.0.40.0100.08020.10
7.0.30.0100.05720.13
7.0.20.0130.07320.07
7.0.10.0170.07720.14
7.0.00.0170.07720.16
5.6.280.0030.07321.03
5.6.250.0100.07720.61
5.6.240.0200.07020.77
5.6.230.0100.08320.66
5.6.220.0130.07720.50
5.6.210.0070.08720.77
5.6.200.0100.08321.12
5.6.190.0100.07321.03
5.6.180.0000.06721.07
5.6.170.0130.07321.12
5.6.160.0100.04720.94
5.6.150.0070.08721.04
5.6.140.0070.08721.02
5.6.130.0170.07721.05
5.6.120.0000.05720.96
5.6.110.0070.08021.13
5.6.100.0170.07721.03
5.6.90.0000.06020.92
5.6.80.0030.08020.50
5.6.70.0030.08320.32
5.6.60.0100.08020.41
5.6.50.0170.05320.35
5.6.40.0100.07720.38
5.6.30.0170.07720.41
5.6.20.0100.07720.35
5.6.10.0130.07020.41
5.6.00.0100.07720.39
5.5.380.0070.06320.58
5.5.370.0030.04720.57
5.5.360.0100.08020.39
5.5.350.0070.08020.45
5.5.340.0100.05320.80
5.5.330.0070.08320.88
5.5.320.0230.06020.66
5.5.310.0170.07320.83
5.5.300.0100.07720.78
5.5.290.0130.08020.88
5.5.280.0170.07320.84
5.5.270.0030.08720.73
5.5.260.0100.08320.79
5.5.250.0070.06720.70
5.5.240.0100.05720.13
5.5.230.0070.05320.12
5.5.220.0070.06020.16
5.5.210.0170.06020.12
5.5.200.0100.06320.10
5.5.190.0030.09020.26
5.5.180.0130.07720.25
5.5.160.0070.08320.16
5.5.150.0130.07320.09
5.5.140.0070.08020.09
5.5.130.0070.08020.27
5.5.120.0100.07720.18
5.5.110.0070.07720.26
5.5.100.0170.07020.03
5.5.90.0030.07720.02
5.5.80.0130.08020.02
5.5.70.0070.06320.07
5.5.60.0030.08319.97
5.5.50.0170.07320.09
5.5.40.0100.06720.07
5.5.30.0030.08720.16
5.5.20.0030.08020.06
5.5.10.0070.05020.13
5.5.00.0070.06720.08
5.4.450.0100.07319.37
5.4.440.0200.06719.43
5.4.430.0070.05019.27
5.4.420.0070.07719.55
5.4.410.0130.05719.32
5.4.400.0100.06719.13
5.4.390.0100.05319.14
5.4.380.0100.07319.04
5.4.370.0100.07319.14
5.4.360.0100.05318.88
5.4.350.0130.07019.16
5.4.340.0200.06019.18
5.4.320.0170.06319.13
5.4.310.0100.07319.05
5.4.300.0070.07319.09
5.4.290.0030.07719.03
5.4.280.0100.06719.18
5.4.270.0030.08319.18
5.4.260.0130.07019.16
5.4.250.0070.08019.04
5.4.240.0130.06719.04
5.4.230.0000.08319.11
5.4.220.0130.05019.04
5.4.210.0100.07019.04
5.4.200.0000.08319.15
5.4.190.0130.07318.93
5.4.180.0070.08319.11
5.4.170.0070.03719.17
5.4.160.0030.04318.86
5.4.150.0000.08319.01
5.4.140.0100.07716.46
5.4.130.0070.05016.45
5.4.120.0130.06716.45
5.4.110.0130.04716.55
5.4.100.0000.06716.33
5.4.90.0070.06316.50
5.4.80.0070.07716.37
5.4.70.0100.04016.46
5.4.60.0130.06016.43
5.4.50.0070.07016.33
5.4.40.0030.06016.46
5.4.30.0000.04716.41
5.4.20.0030.07316.33
5.4.10.0070.07716.31
5.4.00.0070.04715.88
5.3.290.0070.07714.73
5.3.280.0130.07714.67
5.3.270.0100.03314.74
5.3.260.0070.06314.73
5.3.250.0030.08314.72
5.3.240.0130.07314.71
5.3.230.0070.04714.54
5.3.220.0070.08314.65
5.3.210.0030.04014.65
5.3.200.0030.07314.60
5.3.190.0100.08014.54
5.3.180.0070.07714.55
5.3.170.0130.06714.69
5.3.160.0030.08314.54
5.3.150.0200.07014.71
5.3.140.0030.07714.66
5.3.130.0170.07014.61
5.3.120.0100.04014.66
5.3.110.0170.07014.55
5.3.100.0070.06314.03
5.3.90.0030.06713.95
5.3.80.0130.07014.09
5.3.70.0030.07313.93
5.3.60.0030.04714.00
5.3.50.0100.07314.02
5.3.40.0000.07714.02
5.3.30.0070.05713.84
5.3.20.0070.07313.62
5.3.10.0030.04713.77
5.3.00.0170.05713.57
5.2.170.0030.06310.97
5.2.160.0030.05311.11
5.2.150.0000.07711.11
5.2.140.0070.06011.14
5.2.130.0100.04011.09
5.2.120.0030.03011.18
5.2.110.0030.06010.93
5.2.100.0070.05311.05
5.2.90.0000.03311.02
5.2.80.0030.06011.12
5.2.70.0000.04711.10
5.2.60.0070.04711.10
5.2.50.0030.05311.05
5.2.40.0070.04310.93
5.2.30.0000.04010.81
5.2.20.0070.05310.96
5.2.10.0030.06010.78
5.2.00.0100.04710.65
5.1.60.0030.05010.02
5.1.50.0030.04310.00
5.1.40.0070.03310.00
5.1.30.0000.03010.38
5.1.20.0030.02710.40
5.1.10.0030.02710.11
5.1.00.0070.02010.13
5.0.50.0000.02710.00
5.0.40.0030.02010.00
5.0.30.0070.02310.00
5.0.20.0000.02310.00
5.0.10.0000.02710.00
5.0.00.0030.02710.00
4.4.90.0070.03010.00
4.4.80.0000.03310.00
4.4.70.0000.03010.00
4.4.60.0030.03310.00
4.4.50.0070.03010.00
4.4.40.0030.05310.00
4.4.30.0030.03710.00
4.4.20.0000.01710.00
4.4.10.0000.02010.00
4.4.00.0000.02710.00
4.3.110.0000.01710.00
4.3.100.0000.01710.00
4.3.90.0030.01310.00
4.3.80.0000.02710.00
4.3.70.0030.01310.00
4.3.60.0000.01710.00
4.3.50.0030.01310.00
4.3.40.0030.02010.00
4.3.30.0000.01710.00
4.3.20.0000.01710.00
4.3.10.0000.01710.00
4.3.00.0030.01310.00

preferences:
47.32 ms | 401 KiB | 5 Q