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($v) use (&$filterFunc) { if (!$v["enabled"]) return false; if (isset($v["userlevel"])) { if ($v["userlevel"] > 60) return false; } return true; }; $navigation = array_filter($navigation, $filterFunc); foreach($navigation as &$v) { if (isset($v["submenu"])) $v["submenu"] = array_filter($v["submenu"], $filterFunc); } 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.40.0060.00918.84
8.3.30.0120.00420.34
8.3.20.0040.00420.16
8.3.10.0050.00322.12
8.3.00.0030.00522.32
8.2.170.0090.00622.96
8.2.160.0140.00722.17
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0110.00326.16
8.2.120.0040.00421.11
8.2.110.0160.01022.25
8.2.100.0070.00717.91
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00817.80
8.2.50.0050.00318.10
8.2.40.0000.00818.34
8.2.30.0030.00618.01
8.2.20.0040.00417.66
8.2.10.0000.00817.63
8.2.00.0060.00317.77
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0000.00920.95
8.1.230.0080.00417.82
8.1.220.0050.00317.78
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0040.00418.68
8.1.160.0000.00722.09
8.1.150.0000.00718.66
8.1.140.0070.00017.47
8.1.130.0000.00717.88
8.1.120.0040.00417.48
8.1.110.0000.00817.37
8.1.100.0000.00717.40
8.1.90.0040.00417.45
8.1.80.0030.00717.34
8.1.70.0040.00417.42
8.1.60.0030.00617.49
8.1.50.0060.00317.49
8.1.40.0050.00317.43
8.1.30.0000.00817.57
8.1.20.0060.00317.63
8.1.10.0030.00617.61
8.1.00.0070.00417.44
8.0.300.0030.00518.77
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0000.00817.13
8.0.260.0030.00316.85
8.0.250.0000.00716.98
8.0.240.0000.00817.01
8.0.230.0070.00016.87
8.0.220.0070.00016.78
8.0.210.0030.00316.88
8.0.200.0000.00716.93
8.0.190.0000.00817.00
8.0.180.0080.00016.85
8.0.170.0040.00416.82
8.0.160.0000.00816.76
8.0.150.0000.00716.90
8.0.140.0000.00716.82
8.0.130.0060.00013.25
8.0.120.0030.00516.69
8.0.110.0000.00716.91
8.0.100.0040.00416.89
8.0.90.0050.00316.79
8.0.80.0030.01216.87
8.0.70.0070.00016.76
8.0.60.0050.00316.70
8.0.50.0040.00416.88
8.0.30.0110.01116.99
8.0.20.0140.00617.40
8.0.10.0040.00416.84
8.0.00.0080.01216.79
7.4.330.0030.00315.00
7.4.320.0000.00716.65
7.4.300.0000.00616.61
7.4.290.0080.00016.59
7.4.280.0000.00816.41
7.4.270.0000.00716.49
7.4.260.0000.00613.28
7.4.250.0000.00816.40
7.4.240.0050.00316.59
7.4.230.0000.00716.59
7.4.220.0060.01216.56
7.4.210.0100.00716.60
7.4.200.0070.00016.42
7.4.190.0050.00316.46
7.4.160.0090.00916.65
7.4.150.0140.00617.40
7.4.140.0120.00817.86
7.4.130.0090.00916.46
7.4.120.0150.00816.36
7.4.110.0150.00416.50
7.4.100.0170.00916.46
7.4.90.0160.00316.52
7.4.80.0130.00519.39
7.4.70.0110.00816.69
7.4.60.0180.01416.54
7.4.50.0050.00316.39
7.4.40.0110.00722.77
7.4.30.0150.00316.48
7.4.00.0030.01215.15
7.3.330.0030.00313.35
7.3.320.0030.00313.19
7.3.310.0000.00716.40
7.3.300.0000.00716.39
7.3.290.0120.00516.27
7.3.280.0100.00716.40
7.3.270.0040.02017.40
7.3.260.0040.01416.38
7.3.250.0090.00916.47
7.3.240.0160.00316.33
7.3.230.0140.00416.50
7.3.210.0150.00416.65
7.3.200.0100.01019.39
7.3.190.0060.01316.68
7.3.180.0130.00616.39
7.3.170.0140.00616.35
7.3.160.0090.00916.57
7.3.120.0070.01114.66
7.3.10.0100.00616.61
7.3.00.0110.00516.55
7.2.330.0120.01216.68
7.2.320.0140.00416.70
7.2.310.0090.01716.50
7.2.300.0100.00616.84
7.2.290.0170.00316.88
7.2.130.0060.01316.61
7.2.120.0050.00816.84
7.2.110.0060.00916.75
7.2.100.0080.00816.96
7.2.90.0110.00316.78
7.2.80.0050.00816.94
7.2.70.0060.01016.94
7.2.60.0030.00916.86
7.2.50.0120.00316.63
7.2.40.0070.00716.76
7.2.30.0030.00716.70
7.2.20.0090.00616.84
7.2.10.0020.01116.74
7.2.00.0100.00216.97
7.1.250.0040.00715.64
7.1.240.0090.00615.58
7.1.230.0000.01215.60
7.1.220.0090.00315.83
7.1.210.0120.00416.00
7.1.200.0050.00815.82
7.1.190.0120.00315.88
7.1.180.0060.01215.96
7.1.170.0030.00915.80
7.1.160.0100.00315.81
7.1.150.0030.01016.00
7.1.140.0090.00315.60
7.1.130.0040.01215.61
7.1.120.0090.00615.55
7.1.110.0080.00415.80
7.1.100.0040.01515.95
7.1.90.0060.00315.89
7.1.80.0130.00315.91
7.1.70.0060.00516.54
7.1.60.0050.00717.55
7.1.50.0130.00516.33
7.1.40.0090.00915.90
7.1.30.0060.00615.73
7.1.20.0000.01415.91
7.1.10.0100.00715.88
7.1.00.0040.04119.09
7.0.330.0030.01315.27
7.0.320.0030.00915.52
7.0.310.0070.00315.11
7.0.300.0040.00715.37
7.0.290.0070.00415.49
7.0.280.0000.01315.20
7.0.270.0080.00815.48
7.0.260.0030.00615.52
7.0.250.0070.01015.50
7.0.240.0070.00715.60
7.0.230.0000.01715.55
7.0.220.0100.00715.54
7.0.210.0060.00915.27
7.0.200.0150.00516.12
7.0.190.0070.00715.55
7.0.180.0070.00715.45
7.0.170.0080.00515.53
7.0.160.0030.01015.45
7.0.150.0060.00615.49
7.0.140.0020.04218.72
7.0.130.0060.00915.45
7.0.120.0090.00315.38
7.0.110.0060.00615.06
7.0.100.0040.00715.24
7.0.90.0000.01415.39
7.0.80.0030.01015.56
7.0.70.0060.00615.46
7.0.60.0120.04017.66
7.0.50.0050.04916.77
7.0.40.0020.02816.87
7.0.30.0100.02916.89
7.0.20.0190.03016.79
7.0.10.0100.02716.85
7.0.00.0050.04616.80
5.6.380.0070.00314.61
5.6.370.0100.00714.36
5.6.360.0060.00914.46
5.6.350.0090.00614.38
5.6.340.0030.01014.61
5.6.330.0000.00814.80
5.6.320.0070.01114.46
5.6.310.0090.00614.40
5.6.300.0090.00314.42
5.6.290.0070.00714.46
5.6.280.0080.03817.82
5.6.270.0060.00614.66
5.6.260.0030.01014.46
5.6.250.0000.01014.61
5.6.240.0030.00614.50
5.6.230.0030.00714.49
5.6.220.0070.00314.40
5.6.210.0080.04517.58
5.6.200.0100.03616.31
5.6.190.0070.02117.54
5.6.180.0160.03617.55
5.6.170.0150.02817.47
5.6.160.0030.03017.70
5.6.150.0000.03616.47
5.6.140.0060.02816.30
5.6.130.0050.04816.34
5.6.120.0030.02917.79
5.6.110.0030.03717.61
5.6.100.0090.03117.69
5.6.90.0070.04617.70
5.6.80.0080.02617.39
5.6.70.0120.02217.38
5.6.60.0060.01014.55
5.6.50.0100.00314.17
5.6.40.0070.00714.32
5.6.30.0120.00314.43
5.6.20.0100.00714.42
5.6.10.0000.01114.65
5.6.00.0130.00314.39
5.5.380.0070.00011.52
5.5.370.0000.00711.48
5.5.360.0070.00711.42
5.5.350.0020.02715.92
5.5.340.0030.02514.71
5.5.330.0050.03015.95
5.5.320.0150.02615.70
5.5.310.0100.05015.84
5.5.300.0030.02814.71
5.5.290.0020.03814.64
5.5.280.0100.04015.93
5.5.270.0060.04316.04
5.5.260.0080.02515.97
5.5.250.0090.03615.90
5.5.240.0110.03815.94
5.5.230.0000.00711.25
5.5.220.0050.00511.24
5.5.210.0040.00411.13
5.5.200.0030.00711.26
5.5.190.0040.01111.52
5.5.180.0060.00311.45
5.5.170.0000.01111.35
5.5.160.0030.00911.39
5.5.150.0060.00611.17
5.5.140.0030.00910.89
5.5.130.0000.01411.17
5.5.120.0070.00711.21
5.5.110.0030.01011.18
5.5.100.0040.00810.92
5.5.90.0090.00311.15
5.5.80.0090.00311.26
5.5.70.0000.00611.28
5.5.60.0000.00610.89
5.5.50.0100.00311.18
5.5.40.0050.00511.39
5.5.30.0000.00811.30
5.5.20.0030.00811.34
5.5.10.0030.00711.27
5.5.00.0040.00811.37
5.4.450.0450.02215.31
5.4.440.0500.03215.56
5.4.430.0120.03515.25
5.4.420.0120.03215.58
5.4.410.0090.03515.26
5.4.400.0470.02714.94
5.4.390.0590.03514.98
5.4.380.0100.03214.87
5.4.370.0140.02615.01
5.4.360.0080.02814.76
5.4.350.0080.02511.48
5.4.340.0060.02511.63
5.4.330.0000.00811.27
5.4.320.0070.02011.87
5.4.310.0040.02611.91
5.4.300.0090.01711.85
5.4.290.0040.02711.82
5.4.280.0060.01911.66
5.4.270.0070.03414.71
5.4.260.0100.02415.14
5.4.250.0030.02915.12
5.4.240.0030.04415.07
5.4.230.0080.04014.98
5.4.220.0080.03814.96
5.4.210.0050.04014.97
5.4.200.0060.02515.08
5.4.190.0050.03215.01
5.4.180.0070.03615.02
5.4.170.0070.02815.07
5.4.160.0130.02015.04
5.4.150.0070.03515.16
5.4.140.0070.02713.82
5.4.130.0030.02913.63
5.4.120.0050.02813.78
5.4.110.0130.03213.79
5.4.100.0070.03413.65
5.4.90.0070.02813.88
5.4.80.0090.02513.85
5.4.70.0050.03013.79
5.4.60.0050.02813.68
5.4.50.0020.02813.85
5.4.40.0070.02813.73
5.4.30.0000.03113.81
5.4.20.0080.02213.82
5.4.10.0060.03213.73
5.4.00.0020.03713.51
5.3.290.0030.02511.60
5.3.280.0070.02712.65
5.3.270.0060.02612.68
5.3.260.0030.03112.55
5.3.250.0060.02512.67
5.3.240.0110.02512.68
5.3.230.0080.02312.57
5.3.220.0060.04112.58
5.3.210.0080.03012.66
5.3.200.0050.02812.66
5.3.190.0070.04112.71
5.3.180.0040.03012.63
5.3.170.0050.02812.70
5.3.160.0080.02612.71
5.3.150.0020.03512.77
5.3.140.0100.02212.65
5.3.130.0050.02712.53
5.3.120.0050.03112.67
5.3.110.0060.02812.55
5.3.100.0020.03912.48
5.3.90.0030.03812.42
5.3.80.0070.02712.22
5.3.70.0030.02812.38
5.3.60.0060.03112.33
5.3.50.0030.02912.22
5.3.40.0030.03812.36
5.3.30.0050.02812.40
5.3.20.0030.03012.07
5.3.10.0060.02512.05
5.3.00.0060.04012.11
5.2.170.0020.02310.29
5.2.160.0080.0269.97
5.2.150.0040.03110.13
5.2.140.0070.02210.20
5.2.130.0030.02910.20
5.2.120.0060.01710.06
5.2.110.0040.02810.01
5.2.100.0090.01510.23
5.2.90.0030.02510.15
5.2.80.0020.02410.18
5.2.70.0070.02010.10
5.2.60.0050.02510.03
5.2.50.0080.02010.00
5.2.40.0000.02610.16
5.2.30.0040.0229.93
5.2.20.0080.01810.01
5.2.10.0070.0269.89
5.2.00.0050.0249.80
5.1.60.0060.0149.25
5.1.50.0040.0229.28
5.1.40.0050.0239.33
5.1.30.0030.0219.48
5.1.20.0080.0189.30
5.1.10.0050.0209.16
5.1.00.0030.0269.31
5.0.50.0030.0228.39
5.0.40.0020.0178.42
5.0.30.0030.0238.16
5.0.20.0050.0128.37
5.0.10.0080.0108.20
5.0.00.0020.0258.34
4.4.90.0020.0127.63
4.4.80.0000.0137.63
4.4.70.0020.0147.63
4.4.60.0080.0127.63
4.4.50.0010.0147.56
4.4.40.0070.0177.56
4.4.30.0020.0137.56
4.4.20.0030.0177.56
4.4.10.0050.0117.56
4.4.00.0000.0207.56
4.3.110.0000.0147.56
4.3.100.0020.0137.56
4.3.90.0000.0177.56
4.3.80.0000.0197.56
4.3.70.0040.0107.56
4.3.60.0020.0137.56
4.3.50.0000.0157.56
4.3.40.0030.0167.56
4.3.30.0030.0107.56
4.3.20.0020.0177.56
4.3.10.0030.0157.56
4.3.00.0050.0157.51

preferences:
37.65 ms | 400 KiB | 5 Q