3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Stick this with your helper functions function buildMenu($navigation, $currentPage){ echo '<ul>'; foreach ($navigation as $key => $val) { $class = $val === $currentPage ? 'on' : 'off'; echo '<li>'; if( is_array($val) ){ echo '<a href="#" class="' . $class . '">' . $key . '</a>'; buildMenu($val, $currentPage); } else { echo '<a href="' . $val . '" class="' . $class . '">' . $key . '</a>'; } echo '</li>'; }; echo '</ul>'; }; // Define current page $currentPage = 'club.php'; // Build up your navigation arrays $navigation = array( 'News' => '#', 'About' => array( 'Club' => 'club.php', 'Coaches' => 'coaches.php', 'Officials' => 'officials.php', 'Management' => 'management.php' ) ); // Build HTML buildMenu($navigation, $currentPage);

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.0100.01018.43
8.3.50.0120.00821.15
8.3.40.0100.00318.59
8.3.30.0080.00619.14
8.3.20.0040.00420.34
8.3.10.0040.00421.75
8.3.00.0070.00022.58
8.2.180.0060.01616.32
8.2.170.0110.00422.96
8.2.160.0090.00919.21
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0140.00426.16
8.2.120.0030.00619.48
8.2.110.0060.00322.16
8.2.100.0030.00919.45
8.2.90.0030.00619.17
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0080.00019.89
8.2.30.0000.00717.95
8.2.20.0000.00717.71
8.2.10.0000.00717.62
8.2.00.0080.00017.75
8.1.280.0170.00325.92
8.1.270.0040.00422.10
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0090.00023.92
8.1.230.0030.00819.15
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.53
8.1.180.0040.00418.70
8.1.170.0060.00318.52
8.1.160.0050.00222.06
8.1.150.0030.00518.61
8.1.140.0040.00417.41
8.1.130.0070.00017.89
8.1.120.0030.00317.36
8.1.110.0080.00017.35
8.1.100.0000.00717.44
8.1.90.0070.00017.52
8.1.80.0030.00317.42
8.1.70.0000.00717.42
8.1.60.0060.00317.49
8.1.50.0000.00717.46
8.1.40.0000.00817.48
8.1.30.0040.00417.49
8.1.20.0090.00017.51
8.1.10.0000.00717.39
8.1.00.0000.00717.50
8.0.300.0000.00718.77
8.0.290.0030.00617.02
8.0.280.0000.00718.36
8.0.270.0040.00417.27
8.0.260.0000.00716.82
8.0.250.0030.00317.03
8.0.240.0000.00716.95
8.0.230.0000.00716.93
8.0.220.0070.00016.80
8.0.210.0030.00316.85
8.0.200.0050.00316.97
8.0.190.0040.00416.83
8.0.180.0050.00316.81
8.0.170.0050.00316.92
8.0.160.0040.00416.77
8.0.150.0000.00716.80
8.0.140.0040.00316.86
8.0.130.0030.00313.32
8.0.120.0110.00016.90
8.0.110.0040.00416.73
8.0.100.0040.00416.84
8.0.90.0000.00716.87
8.0.80.0110.01116.90
8.0.70.0040.00416.80
8.0.60.0030.00516.75
8.0.50.0000.00716.94
8.0.30.0120.01116.90
8.0.20.0110.00917.40
8.0.10.0080.00016.91
8.0.00.0070.01216.94
7.4.330.0050.00015.03
7.4.320.0000.00616.52
7.4.300.0030.00316.58
7.4.290.0030.00316.43
7.4.280.0070.00016.63
7.4.270.0030.00316.53
7.4.260.0030.00316.49
7.4.250.0000.00816.37
7.4.240.0000.00716.49
7.4.230.0030.00316.55
7.4.220.0000.01616.65
7.4.210.0080.00816.57
7.4.200.0000.00716.35
7.4.190.0000.00716.43
7.4.160.0100.00716.70
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0080.00816.58
7.4.120.0060.01116.46
7.4.110.0070.01016.64
7.4.100.0060.01616.42
7.4.90.0070.01016.46
7.4.80.0070.01119.39
7.4.70.0000.01916.55
7.4.60.0140.00316.57
7.4.50.0030.00516.40
7.4.40.0120.00322.77
7.4.30.0090.00916.26
7.4.10.0070.01114.95
7.4.00.0080.00914.92
7.3.330.0050.00013.38
7.3.320.0030.00313.23
7.3.310.0050.00216.35
7.3.300.0030.00316.23
7.3.290.0110.00716.28
7.3.280.0100.01016.35
7.3.270.0100.01617.40
7.3.260.0110.00616.33
7.3.250.0080.00916.47
7.3.240.0140.00716.30
7.3.230.0140.00316.43
7.3.210.0070.01016.24
7.3.200.0000.02119.39
7.3.190.0110.01116.50
7.3.180.0030.01316.24
7.3.170.0000.01616.57
7.3.160.0030.01316.51
7.3.130.0030.01614.84
7.3.120.0070.00914.82
7.3.110.0060.01314.79
7.3.100.0030.01214.82
7.3.90.0070.01114.85
7.3.80.0060.01214.87
7.3.70.0060.01214.91
7.3.60.0030.00914.78
7.3.50.0000.01014.85
7.3.40.0150.00014.94
7.3.30.0000.01414.82
7.3.20.0040.01116.76
7.3.10.0090.00316.71
7.3.00.0090.00616.90
7.2.330.0060.01216.41
7.2.320.0070.01316.64
7.2.310.0150.00916.85
7.2.300.0030.01316.76
7.2.290.0060.00916.64
7.2.260.0090.00914.83
7.2.250.0100.00915.26
7.2.240.0030.01214.60
7.2.230.0080.00414.64
7.2.220.0070.01015.26
7.2.210.0070.00715.23
7.2.200.0030.01015.05
7.2.190.0030.01014.96
7.2.180.0030.00714.94
7.2.170.0060.00614.98
7.2.160.0090.00914.79
7.2.150.0000.01816.95
7.2.140.0140.00016.72
7.2.130.0080.00816.90
7.2.120.0060.00916.80
7.2.110.0070.00716.93
7.2.100.0130.00316.98
7.2.90.0100.00716.70
7.2.80.0040.01116.63
7.2.70.0070.01017.09
7.2.60.0070.00717.01
7.2.50.0030.01516.70
7.2.40.0030.01016.77
7.2.30.0130.00316.68
7.2.20.0110.00016.91
7.2.10.0030.01516.93
7.2.00.0060.00518.05
7.1.330.0110.00415.98
7.1.320.0090.00615.79
7.1.310.0160.00015.71
7.1.300.0090.00615.83
7.1.290.0040.00415.57
7.1.280.0070.00715.82
7.1.270.0070.01015.73
7.1.260.0030.01215.79
7.1.250.0000.01115.82
7.1.240.0070.00715.91
7.1.230.0090.00015.60
7.1.220.0070.00715.93
7.1.210.0070.00715.96
7.1.200.0070.00715.74
7.1.190.0060.00915.80
7.1.180.0040.00815.80
7.1.170.0090.00915.70
7.1.160.0060.00615.94
7.1.150.0100.00315.62
7.1.140.0060.00615.81
7.1.130.0090.00615.90
7.1.120.0040.01115.76
7.1.110.0040.01115.96
7.1.100.0050.00816.95
7.1.90.0030.01015.93
7.1.80.0060.00915.89
7.1.70.0020.00916.51
7.1.60.0080.00917.84
7.1.50.0110.00616.51
7.1.40.0000.01515.94
7.1.30.0000.01615.76
7.1.20.0030.01015.92
7.1.10.0130.00015.86
7.1.00.0060.03919.04
7.0.330.0100.00315.05
7.0.320.0070.00715.47
7.0.310.0040.00715.57
7.0.300.0030.01015.21
7.0.290.0030.00915.61
7.0.280.0030.00615.14
7.0.270.0000.01315.32
7.0.260.0000.01415.46
7.0.250.0070.00315.61
7.0.240.0070.00715.55
7.0.230.0030.01015.31
7.0.220.0080.00515.32
7.0.210.0040.00415.44
7.0.200.0020.00816.10
7.0.190.0060.01015.51
7.0.180.0050.00515.55
7.0.170.0060.00615.52
7.0.160.0060.00615.47
7.0.150.0060.00615.38
7.0.140.0100.03518.72
7.0.130.0070.00715.57
7.0.120.0030.00815.40
7.0.110.0370.03817.75
7.0.100.0120.03517.82
7.0.90.0360.03617.48
7.0.80.0300.02717.69
7.0.70.0230.04017.64
7.0.60.0350.04417.73
7.0.50.0340.04717.63
7.0.40.0050.03516.62
7.0.30.0080.03216.63
7.0.20.0030.04016.67
7.0.10.0030.03716.66
7.0.00.0060.03816.54
5.6.400.0030.01014.27
5.6.390.0090.00614.37
5.6.380.0060.00614.24
5.6.370.0030.00614.53
5.6.360.0050.00514.34
5.6.350.0060.00913.98
5.6.340.0100.00314.50
5.6.330.0030.01014.41
5.6.320.0070.00714.53
5.6.310.0070.00414.15
5.6.300.0030.01314.29
5.6.290.0000.01214.29
5.6.280.0030.04017.71
5.6.270.0100.00314.11
5.6.260.0090.03717.39
5.6.250.0040.04517.69
5.6.240.0070.03617.46
5.6.230.0110.02317.54
5.6.220.0030.04817.33
5.6.210.0100.04017.53
5.6.200.0070.04717.45
5.6.190.0030.02917.47
5.6.180.0050.04717.54
5.6.170.0050.04517.40
5.6.160.0050.04217.57
5.6.150.0130.03517.45
5.6.140.0070.02317.52
5.6.130.0110.01817.56
5.6.120.0030.02417.39
5.6.110.0050.03817.39
5.6.100.0050.04517.47
5.6.90.0090.04417.39
5.6.80.0140.03817.19
5.6.70.0090.04017.30
5.6.60.0050.02417.18
5.6.50.0070.02117.09
5.6.40.0040.02517.19
5.6.30.0050.03117.25
5.6.20.0050.02917.03
5.6.10.0030.02317.12
5.6.00.0060.02417.15
5.5.380.0120.03915.94
5.5.370.0030.04515.96
5.5.360.0060.04015.84
5.5.350.0050.04515.80
5.5.340.0080.04015.98
5.5.330.0050.04016.19
5.5.320.0030.03216.21
5.5.310.0090.04116.11
5.5.300.0020.02916.13
5.5.290.0040.03016.14
5.5.280.0100.03516.15
5.5.270.0050.02216.20
5.5.260.0060.04616.22
5.5.250.0070.03716.18
5.5.240.0020.04115.86
5.5.230.0050.02515.90
5.5.220.0080.02115.96
5.5.210.0090.02215.75
5.5.200.0030.02515.73
5.5.190.0020.02615.80
5.5.180.0050.02215.93
5.5.170.0060.00614.19
5.5.160.0090.01715.74
5.5.150.0050.02615.80
5.5.140.0040.02515.96
5.5.130.0040.02115.88
5.5.120.0050.02215.95
5.5.110.0010.02815.68
5.5.100.0040.03015.78
5.5.90.0090.02015.91
5.5.80.0020.02515.79
5.5.70.0020.01915.65
5.5.60.0020.02715.82
5.5.50.0030.02215.48
5.5.40.0050.01815.60
5.5.30.0060.01815.79
5.5.20.0070.01915.79
5.5.10.0030.02115.89
5.5.00.0050.01615.74
5.4.450.0030.04315.53
5.4.440.0030.04015.45
5.4.430.0030.04415.54
5.4.420.0060.02815.53
5.4.410.0040.04515.38
5.4.400.0040.03515.37
5.4.390.0050.03215.27
5.4.380.0040.02415.35
5.4.370.0050.03315.33
5.4.360.0020.02715.25
5.4.350.0020.02615.44
5.4.340.0030.02515.28
5.4.330.0060.00311.55
5.4.320.0070.02215.27
5.4.310.0080.02015.37
5.4.300.0030.02315.33
5.4.290.0020.02415.36
5.4.280.0020.01915.39
5.4.270.0060.02315.26
5.4.260.0030.01815.28
5.4.250.0080.01815.28
5.4.240.0050.02315.28
5.4.230.0060.02115.28
5.4.220.0040.01715.29
5.4.210.0030.02215.27
5.4.200.0060.01815.44
5.4.190.0040.02215.36
5.4.180.0030.02015.28
5.4.170.0060.02115.31
5.4.160.0030.01815.24
5.4.150.0030.01815.38
5.4.140.0030.02014.05
5.4.130.0030.02214.09
5.4.120.0060.01514.05
5.4.110.0020.02213.98
5.4.100.0050.02014.00
5.4.90.0040.01613.98
5.4.80.0040.02113.95
5.4.70.0050.01914.02
5.4.60.0020.02213.94
5.4.50.0050.01813.92
5.4.40.0060.01614.02
5.4.30.0060.01613.98
5.4.20.0050.02013.91
5.4.10.0000.02514.04
5.4.00.0010.02313.68
5.3.290.0020.02113.13
5.3.280.0040.01913.06
5.3.270.0100.01513.12
5.3.260.0050.01713.07
5.3.250.0000.02313.12
5.3.240.0060.01613.19
5.3.230.0010.01813.07
5.3.220.0060.03513.05
5.3.210.0050.01513.08
5.3.200.0020.02413.17
5.3.190.0050.01813.07
5.3.180.0050.01813.04
5.3.170.0020.01813.06
5.3.160.0050.01713.05
5.3.150.0050.02013.11
5.3.140.0050.02013.17
5.3.130.0000.02513.04
5.3.120.0020.02313.04
5.3.110.0070.02013.04
5.3.100.0030.03912.72
5.3.90.0080.01812.79
5.3.80.0070.03112.79
5.3.70.0030.01812.86
5.3.60.0050.03612.71
5.3.50.0050.04012.82
5.3.40.0040.04312.73
5.3.30.0050.04212.74
5.3.20.0000.03212.62
5.3.10.0030.04012.67
5.3.00.0070.02812.60
5.2.170.0000.05711.91
5.2.160.0030.05711.91
5.2.150.0100.06011.91
5.2.140.0030.05011.91
5.2.130.0030.04711.91
5.2.120.0030.05311.91
5.2.110.0070.06011.91
5.2.100.0100.05711.91
5.2.90.0030.06711.91
5.2.80.0000.07011.91
5.2.70.0100.03011.91
5.2.60.0100.07011.91
5.2.50.0030.04711.91
5.2.40.0000.04311.91
5.2.30.0030.02711.91
5.2.20.0030.06011.91
5.2.10.0030.06711.91
5.2.00.0030.05311.91
5.1.60.0070.02711.91
5.1.50.0070.03311.91
5.1.40.0000.04011.91
5.1.30.0070.05311.91
5.1.20.0030.05711.91
5.1.10.0170.04011.91
5.1.00.0000.03011.91
5.0.50.0030.04011.91
5.0.40.0030.03711.91
5.0.30.0070.04711.91
5.0.20.0030.03311.91
5.0.10.0100.01711.91
5.0.00.0000.05311.91
4.4.90.0000.01711.91
4.4.80.0070.01311.91
4.4.70.0000.03311.91
4.4.60.0030.03311.91
4.4.50.0000.02711.91
4.4.40.0000.03711.91
4.4.30.0000.01711.91
4.4.20.0030.03311.91
4.4.10.0000.02011.91
4.4.00.0000.05711.91
4.3.110.0030.03711.91
4.3.100.0100.01711.91
4.3.90.0030.03311.91
4.3.80.0000.05711.91
4.3.70.0000.02311.91
4.3.60.0000.02311.91
4.3.50.0000.03311.91
4.3.40.0030.05311.91
4.3.30.0000.03711.91
4.3.20.0030.03311.91
4.3.10.0030.03311.91
4.3.00.0000.03011.91

preferences:
45.53 ms | 401 KiB | 5 Q