3v4l.org

run code in 300+ PHP versions simultaneously
<?php $navigation = array( array( "title" => "Overzicht", "enabled" => 1, "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" => 1 ), 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 $k => $v) { if (isset($v["userlevel"])) { if (!($v["userlevel"] >= 60)) unset($arr[$k]); } if (isset($v["submenu"])) { $filterFunc($v["submenu"]); } } return $arr; }; $navigation = $filterFunc($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.0120.00318.12
8.3.50.0130.00521.26
8.3.40.0090.00618.92
8.3.30.0070.01020.52
8.3.20.0060.00320.52
8.3.10.0030.00520.79
8.3.00.0050.00322.28
8.2.180.0140.00316.50
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0130.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00021.19
8.2.110.0000.00819.16
8.2.100.0080.00418.03
8.2.90.0040.00419.25
8.2.80.0030.00618.05
8.2.70.0030.00517.63
8.2.60.0060.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00719.34
8.2.20.0040.00417.64
8.2.10.0040.00417.86
8.2.00.0040.00417.75
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00023.80
8.1.230.0090.00320.88
8.1.220.0040.00418.77
8.1.210.0030.00619.00
8.1.200.0070.00317.35
8.1.190.0000.00817.54
8.1.180.0080.00018.10
8.1.170.0050.00318.64
8.1.160.0050.00218.86
8.1.150.0070.00018.64
8.1.140.0000.00717.42
8.1.130.0070.00017.83
8.1.120.0030.00317.52
8.1.110.0000.00817.55
8.1.100.0000.00717.46
8.1.90.0070.00017.43
8.1.80.0040.00417.48
8.1.70.0000.00817.43
8.1.60.0040.00417.57
8.1.50.0050.00317.52
8.1.40.0080.00017.49
8.1.30.0030.00617.52
8.1.20.0030.00617.70
8.1.10.0040.00417.55
8.1.00.0040.00417.44
8.0.300.0040.00419.98
8.0.290.0040.00417.16
8.0.280.0000.00718.37
8.0.270.0000.00717.35
8.0.260.0000.00616.94
8.0.250.0000.00816.85
8.0.240.0030.00616.86
8.0.230.0070.00016.98
8.0.220.0000.00716.79
8.0.210.0000.00716.95
8.0.200.0060.00016.96
8.0.190.0040.00416.93
8.0.180.0050.00216.98
8.0.170.0030.00616.84
8.0.160.0020.00516.90
8.0.150.0040.00416.80
8.0.140.0030.00516.77
8.0.130.0060.00013.33
8.0.120.0040.00416.98
8.0.110.0000.00816.89
8.0.100.0040.00416.79
8.0.90.0000.00716.86
8.0.80.0080.00716.83
8.0.70.0040.00416.81
8.0.60.0040.00416.96
8.0.50.0040.00416.90
8.0.30.0110.00817.11
8.0.20.0040.01917.42
8.0.10.0040.00416.96
8.0.00.0110.00916.64
7.4.330.0000.00616.84
7.4.320.0030.00316.61
7.4.300.0030.00316.53
7.4.290.0000.00716.52
7.4.280.0000.00816.50
7.4.270.0030.00316.54
7.4.260.0050.00013.35
7.4.250.0000.00716.48
7.4.240.0030.00316.56
7.4.230.0000.00716.71
7.4.220.0030.01516.43
7.4.210.0080.00816.56
7.4.200.0030.00316.52
7.4.190.0040.00416.58
7.4.160.0070.01016.64
7.4.150.0180.00017.40
7.4.140.0130.00717.86
7.4.130.0070.01316.50
7.4.120.0080.00916.56
7.4.110.0060.01016.65
7.4.100.0080.01616.60
7.4.90.0090.00916.54
7.4.80.0070.01419.39
7.4.70.0110.00816.58
7.4.60.0060.01216.56
7.4.50.0060.00316.32
7.4.40.0060.01022.77
7.4.30.0140.00316.47
7.4.00.0090.00615.07
7.3.330.0060.00013.33
7.3.320.0050.00013.36
7.3.310.0000.00716.44
7.3.300.0000.00616.27
7.3.290.0040.00916.39
7.3.280.0090.00916.35
7.3.270.0100.00717.40
7.3.260.0100.00718.24
7.3.250.0080.01016.38
7.3.240.0130.00416.43
7.3.230.0070.01116.39
7.3.210.0070.01116.42
7.3.200.0010.00319.39
7.3.190.0070.01016.66
7.3.180.0040.01116.30
7.3.170.0100.00716.43
7.3.160.0140.00716.44
7.3.120.0000.01414.79
7.2.330.0040.01416.86
7.2.320.0070.01016.60
7.2.310.0070.01016.60
7.2.300.0070.01016.85
7.2.290.0030.01416.79
7.2.60.0100.00317.03
7.2.00.0030.01019.48
7.1.200.0050.00515.91
7.1.100.0040.00817.96
7.1.70.0070.01017.24
7.1.60.0150.00617.12
7.1.50.0000.02117.01
7.1.00.0030.05722.33
7.0.200.0060.00316.84
7.0.140.0000.07721.95
7.0.80.0230.07320.14
7.0.70.0070.07719.97
7.0.60.0130.04719.87
7.0.50.0030.08020.40
7.0.40.0030.08720.07
7.0.30.0170.07320.17
7.0.20.0070.08020.15
7.0.10.0200.07320.09
7.0.00.0230.08020.11
5.6.280.0030.05020.90
5.6.230.0200.07020.50
5.6.220.0100.04720.60
5.6.210.0030.06020.75
5.6.200.0100.08321.15
5.6.190.0100.08021.04
5.6.180.0000.08321.01
5.6.170.0100.08020.96
5.6.160.0070.08721.11
5.6.150.0070.08721.09
5.6.140.0130.07721.05
5.6.130.0130.07721.02
5.6.120.0100.05721.17
5.6.110.0030.09020.98
5.6.100.0130.07721.07
5.6.90.0070.07321.12
5.6.80.0000.07320.52
5.6.70.0230.06720.32
5.6.60.0000.04720.40
5.6.50.0170.03320.39
5.6.40.0200.07320.54
5.6.30.0100.07720.48
5.6.20.0000.05020.36
5.6.10.0100.08020.38
5.6.00.0200.06020.48
5.5.370.0030.08320.34
5.5.360.0000.05020.51
5.5.350.0000.08020.39
5.5.340.0130.05720.77
5.5.330.0230.06320.66
5.5.320.0130.08020.93
5.5.310.0130.08020.80
5.5.300.0000.08020.94
5.5.290.0170.07020.78
5.5.280.0100.08320.65
5.5.270.0070.08720.73
5.5.260.0170.05320.90
5.5.250.0030.08720.75
5.5.240.0070.05320.32
5.5.230.0030.08020.32
5.5.220.0130.06020.27
5.5.210.0070.08020.24
5.5.200.0170.06720.13
5.5.190.0030.06020.23
5.5.180.0230.04020.22
5.5.160.0070.05020.27
5.5.150.0100.04320.27
5.5.140.0030.08720.23
5.5.130.0070.04720.27
5.5.120.0070.04320.15
5.5.110.0030.04320.09
5.5.100.0030.04020.06
5.5.90.0000.05020.05
5.5.80.0000.04020.08
5.5.70.0130.05020.16
5.5.60.0070.08320.07
5.5.50.0070.07320.10
5.5.40.0170.06020.04
5.5.30.0030.08020.09
5.5.20.0070.05720.16
5.5.10.0130.03319.97
5.5.00.0100.07320.11
5.4.450.0070.08319.39
5.4.440.0230.06719.36
5.4.430.0070.08319.25
5.4.420.0070.08019.36
5.4.410.0100.07319.32
5.4.400.0200.06019.19
5.4.390.0070.08019.16
5.4.380.0070.08319.14
5.4.370.0100.04318.85
5.4.360.0070.04719.05
5.4.350.0070.08019.23
5.4.340.0130.05319.23
5.4.320.0070.04019.14
5.4.310.0200.06019.14
5.4.300.0170.06719.13
5.4.290.0100.04719.21
5.4.280.0030.07318.84
5.4.270.0070.06318.84
5.4.260.0030.04319.12
5.4.250.0070.05319.22
5.4.240.0070.07719.17
5.4.230.0100.07718.84
5.4.220.0170.06719.04
5.4.210.0070.06719.23
5.4.200.0130.07019.04
5.4.190.0100.07718.89
5.4.180.0130.07019.11
5.4.170.0070.07719.13
5.4.160.0100.07019.13
5.4.150.0200.06319.12
5.4.140.0170.06716.46
5.4.130.0100.07016.38
5.4.120.0070.07016.42
5.4.110.0070.03716.48
5.4.100.0030.06316.44
5.4.90.0030.04716.34
5.4.80.0100.03716.26
5.4.70.0030.05716.26
5.4.60.0100.04016.32
5.4.50.0070.07016.32
5.4.40.0100.07316.41
5.4.30.0130.06316.36
5.4.20.0130.06716.45
5.4.10.0100.06316.47
5.4.00.0100.05315.87
5.3.290.0030.05314.62
5.3.280.0230.06314.71
5.3.270.0070.05314.62
5.3.260.0130.06314.60
5.3.250.0100.06714.55
5.3.240.0130.05314.71
5.3.230.0030.08014.66
5.3.220.0000.04314.53
5.3.210.0070.04014.50
5.3.200.0070.04014.70
5.3.190.0100.04314.50
5.3.180.0100.07714.54
5.3.170.0030.08314.64
5.3.160.0070.07714.50
5.3.150.0100.06714.50
5.3.140.0030.05714.59
5.3.130.0100.06014.54
5.3.120.0030.04714.54
5.3.110.0030.07314.62
5.3.100.0030.04314.01
5.3.90.0070.04314.09
5.3.80.0030.07314.05
5.3.70.0030.04314.11
5.3.60.0170.06013.92
5.3.50.0130.06713.85
5.3.40.0070.03714.07
5.3.30.0000.04013.90
5.3.20.0000.07013.75
5.3.10.0070.05713.65
5.3.00.0030.04713.55
5.2.170.0070.03012.83
5.2.160.0100.05312.83
5.2.150.0100.05712.83
5.2.140.0000.04312.83
5.2.130.0100.05712.83
5.2.120.0070.05012.83
5.2.110.0030.05712.83
5.2.100.0030.04012.83
5.2.90.0070.05012.83
5.2.80.0070.05012.83
5.2.70.0100.05312.83
5.2.60.0000.06712.83
5.2.50.0070.06012.83
5.2.40.0100.06012.83
5.2.30.0070.05712.83
5.2.20.0000.04712.83
5.2.10.0070.05712.83
5.2.00.0070.05712.83
5.1.60.0030.05712.83
5.1.50.0000.05012.83
5.1.40.0070.04312.83
5.1.30.0070.04312.83
5.1.20.0130.04312.83
5.1.10.0030.05012.83
5.1.00.0000.05312.83
5.0.50.0070.03012.83
5.0.40.0000.04712.83
5.0.30.0030.06712.83
5.0.20.0070.03712.83
5.0.10.0000.04712.83
5.0.00.0000.05712.83
4.4.90.0000.02012.83
4.4.80.0030.01712.83
4.4.70.0030.03312.83
4.4.60.0070.01712.83
4.4.50.0030.03312.83
4.4.40.0030.05312.83
4.4.30.0000.04012.83
4.4.20.0000.02012.83
4.4.10.0030.03312.83
4.4.00.0070.04712.83
4.3.110.0070.03312.83
4.3.100.0000.03312.83
4.3.90.0000.02712.83
4.3.80.0070.02012.83
4.3.70.0000.03012.83
4.3.60.0000.03312.83
4.3.50.0000.01712.83
4.3.40.0030.04712.83
4.3.30.0000.03712.83
4.3.20.0000.04012.83
4.3.10.0000.03312.83
4.3.00.0000.03312.83

preferences:
41.99 ms | 401 KiB | 5 Q