3v4l.org

run code in 300+ PHP versions simultaneously
<?php function parseCSS($rawText) { $matches = array(); $selections = preg_match_all('/\/\* customize_(.+?) \*\/(.+?)\/\* customize_\1 \*\//s',$rawText,$matches); if (!$selections) return array(); $realMatches = array(); foreach($matches[1] as $key => $val) { $elements = array(); $realMatches[$val] = array(); preg_match_all('/([a-z\-]+?)[\s\t]*:(.+?);/s',$matches[2][$key],$elements); foreach ($elements[1] as $k => $v) { $realMatches[$val][] = array($v,trim($elements[2][$k])); } } return $realMatches; } function replaceTokensWithMap($map,$input) { foreach ($map as $key => $tokens) { $css = ""; foreach ($tokens as $token) { $css .= implode(':',$token).";"; } $input = preg_replace("/\/\* customize_$key \*\/.+?\/\* customize_$key \*\//",$css,$input); } return $input; } $css = ' /* colors * 73880b dark green * f4ffd2 light green * 69ab2b bright green (links & headers) * daf095 med green sidebar backgrounds, header nav * 50AAB5 blue for hovers.. */ /* HTML Tag Redefinition */ html, body { height: 100%; font-family:Arial, Helvetica, sans-serif; } body { padding: 0px; margin: 0px; background: #fff url(images/footer_grass.jpg) repeat-x fixed left bottom; } img { border: 0px } a { cursor:pointer } /* Page Structure / Navigation */ #page { width:800px; margin: auto; background-color:#f4ffd2; height: auto !important; height:100%; min-height:100%; position:relative; background:url(images/central_columns_bg.jpg) repeat-y top left; } #page.sidebar-left { background:url(images/central_left_columns_bg.jpg) repeat-y top left; } #page #header { position:relative; height:100px; background: url(images/header_bg.jpg) repeat-x top left #73880b; padding:15px; } #page #header #logo { color:#fff; font-size:32px; line-height: auto; padding: 0px; margin:0; cursor:pointer; position:absolute; bottom:15px; left: 15px; width:308px; overflow:visible; } #page #header #logo a { /* customize_header_logo */ color: #ffffff; /* customize_header_logo */ /* customize_header_logo_text */ font: normal bold 32px Arial; /* customize_header_logo_text */ text-decoration:none; } #page #header #logo p{ display:inline; line-height:inherit; font-size:inherit; padding:inherit; margin:inherit; color:inherit } #page #header ul.nav-header { list-style:none; margin:0px; float: right; padding:0px; z-index:2; overflow:visible; } #page #header ul.nav-header li { float:left; padding:2px 0px; margin-left:24px; margin-bottom: 0px; /* customize_header_link_text */ color:#daf095; /* customize_header_link_text */ font-size:14px; letter-spacing:1.5px; margin-top:0px } #page #header ul.nav-header li a, #page #header ul.nav-header li a:hover { text-decoration:none; color:#daf095 } #page #header ul.nav-header li.nav-selected { font-weight:bold; } /* #page #header #header-area { position:relative; height:75px; } */ #page #header #header-area { position: absolute; bottom: 15px; right: 15px; width: 462px; } #page #homeHeader { background: url(images/home_header.jpg) top left no-repeat; min-height:192px; } #page #homeHeader, #page #pageHeader { margin:0; padding:0; position:relative; } #page #central { clear:both; padding-bottom:30px; /* for footer */ } #page.no-sidebar { background-image: none !important; background-color:#f4ffd2; } /* body & sidebar */ #page #central #body { float:left; text-align:left; width:542px; padding:15px; /* customize_background */ background-color:"#f4ffd2"; border-color : red; /* customize_background */ } #page #central #sidebar { float:right; width:198px; padding:15px 15px 30px 15px; background: #daf095; } #page.sidebar-left #central #sidebar { float:left; width: 94px } #page.sidebar-left #central #body { float:right; width: 646px; padding: 15px; } #page.no-sidebar #body { float: none !important; width: auto !important } #page #central #sidebar p { line-height:24px } #page #central #sidebar ul.nav { list-style:none; margin-left:0px; padding:0px; padding-left:0; font-size:11px; } #page #central #sidebar ul.nav li { margin-bottom:10px; } #page #central #sidebar ul.nav a { text-decoration:none; color:#69ab2b } #page #central #sidebar ul.nav a.nav-selected { font-weight: bold } #page #central #sidebar ul.nav a:hover { text-decoration:underline } #page #central #sidebar ul.nav ul { list-style:none; margin-left:5px; padding:0px; margin-top:10px; } #page #central #sidebar ul.nav ul li { padding-left: 5px; margin: 0; border-left: 1px solid #69ab2b; } #page #central #sidebar ul.nav ul li ul li { list-style:square inside; padding-left:0; } #page #central #sidebar ul.nav ul li ul li { border:none; } #page #footer { height:10px; line-height:10px; background:url(images/footer_bg.jpg) repeat-x; clear:both; color:#daf095; font-size:10px; text-align:center; padding:10px 0 10px 0; position:absolute; bottom:0; width:100% } #page #footer a { color:#daf095; text-decoration:none; } span.sign-in {margin-left: 20px} #page #footer span.powered-by { float:right; margin-right:20px;} /* MISC STYLES & SHORTCUTS */ div.code { border: 1px solid #ddd; background: #eee; padding: 10px } div.spacer, div.ccm-spacer { clear:both; font-size:1px; line-height:1px } .noTopSpace { margin-top:0px; padding-top:0px } /* customize_miscellaneous */ /* customize_miscellaneous */'; echo replaceTokensWithMap(parseCSS($css),$css);

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.70.0120.00617.00
8.3.60.0030.01316.75
8.3.50.0130.01017.57
8.3.40.0120.00618.92
8.3.30.0120.00618.96
8.3.20.0040.00419.07
8.3.10.0090.00019.07
8.3.00.0030.00619.50
8.2.180.0070.00716.88
8.2.170.0150.00022.96
8.2.160.0090.00619.08
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0080.00020.88
8.2.110.0030.00622.14
8.2.100.0040.00818.03
8.2.90.0040.00419.47
8.2.80.0050.00317.97
8.2.70.0030.00617.86
8.2.60.0030.00618.05
8.2.50.0080.00018.07
8.2.40.0030.00618.45
8.2.30.0040.00418.04
8.2.20.0080.00317.95
8.2.10.0040.00418.02
8.2.00.0040.00418.02
8.1.280.0100.01425.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0130.01021.50
8.1.230.0080.00417.70
8.1.220.0080.00017.79
8.1.210.0040.00418.77
8.1.200.0070.00317.63
8.1.190.0000.00817.60
8.1.180.0060.00318.10
8.1.170.0060.00318.84
8.1.160.0000.00719.12
8.1.150.0000.00818.87
8.1.140.0030.00617.68
8.1.130.0040.00419.45
8.1.120.0000.00717.60
8.1.110.0040.00417.57
8.1.100.0040.00417.57
8.1.90.0070.00017.68
8.1.80.0050.00317.58
8.1.70.0070.00017.68
8.1.60.0000.00917.85
8.1.50.0040.00417.68
8.1.40.0050.00317.69
8.1.30.0040.00417.82
8.1.20.0000.00817.89
8.1.10.0000.00917.72
8.1.00.0040.00417.74
8.0.300.0060.00318.77
8.0.290.0030.00616.88
8.0.280.0030.00318.46
8.0.270.0000.00717.38
8.0.260.0070.00017.09
8.0.250.0040.00417.20
8.0.240.0020.00517.17
8.0.230.0000.00717.08
8.0.220.0040.00417.09
8.0.210.0070.00017.14
8.0.200.0030.00317.09
8.0.190.0040.00417.15
8.0.180.0000.00917.15
8.0.170.0090.00016.95
8.0.160.0040.00417.20
8.0.150.0030.00516.96
8.0.140.0000.00917.14
8.0.130.0000.00613.54
8.0.120.0030.00717.10
8.0.110.0040.00417.05
8.0.100.0040.00417.02
8.0.90.0050.00317.12
8.0.80.0040.01117.05
8.0.70.0040.00417.11
8.0.60.0070.00317.14
8.0.50.0030.00616.93
8.0.30.0080.01117.54
8.0.20.0110.00817.23
8.0.10.0070.00017.05
8.0.00.0080.01117.11
7.4.330.0030.00313.23
7.4.320.0000.00716.89
7.4.300.0070.00016.89
7.4.290.0040.00416.81
7.4.280.0050.00316.87
7.4.270.0000.00816.76
7.4.260.0050.00013.57
7.4.250.0080.00016.77
7.4.240.0070.00016.88
7.4.230.0070.00316.71
7.4.220.0150.00716.84
7.4.210.0030.01316.93
7.4.200.0080.00316.60
7.4.190.0000.00817.06
7.4.160.0130.00616.79
7.4.150.0090.01216.78
7.4.140.0150.01216.93
7.4.130.0030.01716.60
7.4.120.0110.00916.95
7.4.110.0150.00716.80
7.4.100.0000.02316.71
7.4.90.0100.00716.75
7.4.80.0060.01319.39
7.4.70.0100.00716.76
7.4.60.0060.00916.69
7.4.50.0030.00316.66
7.4.40.0130.00316.63
7.4.30.0130.01016.74
7.4.00.0070.01015.01
7.3.330.0030.00313.36
7.3.320.0030.00313.36
7.3.310.0040.00416.57
7.3.300.0000.00716.46
7.3.290.0070.00816.54
7.3.280.0100.01016.57
7.3.270.0110.00616.62
7.3.260.0000.01716.61
7.3.250.0120.00816.86
7.3.240.0070.01316.61
7.3.230.0040.01516.56
7.3.210.0090.00916.47
7.3.200.0080.01616.75
7.3.190.0030.02216.73
7.3.180.0080.00816.93
7.3.170.0040.01816.65
7.3.160.0140.00416.52
7.3.120.0020.01515.06
7.3.110.0060.01215.14
7.3.100.0110.00715.36
7.3.90.0130.00315.30
7.3.80.0070.01014.84
7.3.70.0070.00715.13
7.3.60.0100.01015.03
7.3.50.0000.01215.19
7.3.40.0120.00314.89
7.3.30.0070.00715.24
7.3.20.0070.00716.93
7.3.10.0060.00316.96
7.3.00.0120.00316.77
7.2.330.0100.00717.00
7.2.320.0170.00616.77
7.2.310.0090.01216.91
7.2.300.0120.00616.93
7.2.290.0140.00517.13
7.2.250.0000.02015.32
7.2.240.0070.01315.20
7.2.230.0040.01115.24
7.2.220.0110.00715.31
7.2.210.0130.00015.35
7.2.200.0110.00615.29
7.2.190.0070.00415.57
7.2.180.0110.00715.40
7.2.170.0160.00015.39
7.2.00.0040.01119.77
7.1.330.0070.00715.82
7.1.320.0000.01215.64
7.1.310.0100.00616.05
7.1.300.0060.00315.89
7.1.290.0110.00416.05
7.1.280.0030.00615.77
7.1.270.0030.01016.13
7.1.260.0030.00815.89
7.1.100.0300.01017.61
7.1.70.0070.00017.43
7.1.60.0090.01619.30
7.1.50.0100.01417.28
7.1.00.0030.08022.47
7.0.200.0070.00016.79
7.0.140.0030.07322.06
7.0.120.0100.06022.16
7.0.60.0030.06320.09
7.0.50.0030.08317.96
7.0.40.0030.05320.16
7.0.30.0500.07320.16
7.0.20.0430.06720.10
7.0.10.0070.05020.27
7.0.00.0000.05020.11
5.6.280.0070.07020.93
5.6.210.0070.07720.58
5.6.200.0030.07018.18
5.6.190.0030.08020.61
5.6.180.0430.07320.61
5.6.170.0230.07320.46
5.6.160.0130.08720.63
5.6.150.0100.08318.29
5.6.140.0070.04718.21
5.6.130.0000.06018.18
5.6.120.0170.07720.85
5.6.110.0070.08720.98
5.6.100.0000.09021.01
5.6.90.0000.05720.98
5.6.80.0030.06020.32
5.5.350.0130.04320.55
5.5.340.0030.07318.02
5.5.330.0100.04320.43
5.5.320.0400.08020.40
5.5.310.0230.05720.20
5.5.300.0070.08018.07
5.5.290.0030.09017.94
5.5.280.0200.04020.70
5.5.270.0000.04720.68
5.5.260.0070.04320.88
5.5.250.0000.09020.79
5.5.240.0230.05320.25
5.4.450.0030.08019.41
5.4.440.0030.08319.25
5.4.430.0130.06719.41
5.4.420.0130.07719.47
5.4.410.0130.03719.05
5.4.400.0100.07719.15
5.4.390.0070.04718.93
5.4.380.0070.05719.09
5.4.370.0100.07718.86
5.4.360.0070.04318.88
5.4.350.0030.04019.15
5.4.340.0100.06719.17
5.4.320.0070.07718.93
5.4.310.0170.07019.20
5.4.300.0100.06019.24
5.4.290.0030.04018.85
5.4.280.0070.07319.15
5.4.270.0100.05018.86
5.4.260.0100.03318.85
5.4.250.0100.06718.92
5.4.240.0100.08019.14
5.4.230.0030.07719.12
5.4.220.0170.03319.23
5.4.210.0100.04319.15
5.4.200.0030.04019.31
5.4.190.0130.04718.97
5.4.180.0000.08019.24
5.4.170.0030.05318.86
5.4.160.0100.05719.18
5.4.150.0100.07319.18
5.4.140.0070.05716.43
5.4.130.0030.05316.41
5.4.120.0100.04016.28
5.4.110.0030.04716.46
5.4.100.0000.06716.35
5.4.90.0130.06316.34
5.4.80.0100.06016.41
5.4.70.0070.03316.52
5.4.60.0070.07716.41
5.4.50.0130.06716.46
5.4.40.0170.06316.45
5.4.30.0030.07016.51
5.4.20.0070.06316.45
5.4.10.0070.07016.45
5.4.00.0070.05015.77
5.3.290.0070.03714.73
5.3.280.0030.04014.67
5.3.270.0030.07714.63
5.3.260.0130.03714.68
5.3.250.0130.04314.69
5.3.240.0100.07714.65
5.3.230.0100.07314.67
5.3.220.0130.06314.63
5.3.210.0030.08314.61
5.3.200.0100.08014.65
5.3.190.0100.07014.61
5.3.180.0070.05314.53
5.3.170.0030.04014.63
5.3.160.0100.07714.66
5.3.150.0070.06014.60
5.3.140.0030.07714.52
5.3.130.0130.07014.51
5.3.120.0100.06714.62
5.3.110.0100.07714.48
5.3.100.0070.06014.11
5.3.90.0030.05314.07
5.3.80.0030.08014.03
5.3.70.0170.05714.05
5.3.60.0070.07314.20
5.3.50.0070.04014.02
5.3.40.0100.04314.01
5.3.30.0130.06713.96
5.3.20.0100.07313.76
5.3.10.0030.04013.72
5.3.00.0130.07013.63
5.2.170.0070.05011.35
5.2.160.0130.03311.24
5.2.150.0100.05711.16
5.2.140.0030.04711.14
5.2.130.0070.06011.11
5.2.120.0070.06311.20
5.2.110.0030.04011.10
5.2.100.0070.06711.21
5.2.90.0070.06311.07
5.2.80.0030.03311.06
5.2.70.0000.04011.15
5.2.60.0000.04311.09
5.2.50.0070.06011.11
5.2.40.0100.04011.05
5.2.30.0100.05311.02
5.2.20.0070.03710.92
5.2.10.0070.06010.87
5.2.00.0130.05710.81
5.1.60.0130.02010.01
5.1.50.0030.03310.08
5.1.40.0070.05310.09
5.1.30.0070.04710.38
5.1.20.0000.05010.36
5.1.10.0000.04310.16
5.1.00.0030.04710.09
5.0.50.0000.0408.66
5.0.40.0030.0408.48
5.0.30.0070.0508.19
5.0.20.0030.0438.30
5.0.10.0070.0438.21
5.0.00.0030.0578.25
4.4.90.0030.0378.19
4.4.80.0070.0278.19
4.4.70.0000.0408.19
4.4.60.0000.0408.19
4.4.50.0000.0338.19
4.4.40.0030.0538.19
4.4.30.0030.0338.19
4.4.20.0030.0308.19
4.4.10.0000.0278.19
4.4.00.0070.0538.19
4.3.110.0030.0308.19
4.3.100.0070.0308.19
4.3.90.0100.0208.19
4.3.80.0000.0378.26
4.3.70.0000.0178.29
4.3.60.0070.0138.31
4.3.50.0000.0178.31
4.3.40.0000.0238.33
4.3.30.0000.0178.36
4.3.20.0000.0178.36
4.3.10.0000.0178.40
4.3.00.0000.0138.40

preferences:
64.61 ms | 401 KiB | 5 Q