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 \*\//s",$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.60.0070.01116.88
8.3.50.0110.01118.46
8.3.40.0160.00019.07
8.3.30.0150.00319.18
8.3.20.0060.00319.12
8.3.10.0060.00319.16
8.3.00.0090.00019.63
8.2.180.0110.00716.63
8.2.170.0000.01522.96
8.2.160.0100.00719.13
8.2.150.0060.01224.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0070.00321.19
8.2.110.0120.00620.54
8.2.100.0000.01218.04
8.2.90.0000.00818.47
8.2.80.0050.00319.32
8.2.70.0080.00018.00
8.2.60.0050.00718.05
8.2.50.0000.00818.13
8.2.40.0000.00818.22
8.2.30.0000.00818.28
8.2.20.0000.00917.84
8.2.10.0000.00818.00
8.2.00.0040.00418.05
8.1.280.0110.00425.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0100.00022.33
8.1.230.0070.00421.10
8.1.220.0030.00517.91
8.1.210.0060.00319.16
8.1.200.0040.00417.60
8.1.190.0000.00817.78
8.1.180.0040.00718.10
8.1.170.0000.00818.86
8.1.160.0030.00618.96
8.1.150.0030.00518.75
8.1.140.0000.00817.57
8.1.130.0030.00317.90
8.1.120.0000.00817.76
8.1.110.0050.00317.70
8.1.100.0040.00417.60
8.1.90.0000.00717.58
8.1.80.0030.00517.63
8.1.70.0040.00417.66
8.1.60.0080.00017.70
8.1.50.0040.00417.60
8.1.40.0000.00817.64
8.1.30.0000.01017.89
8.1.20.0050.00317.80
8.1.10.0000.00817.79
8.1.00.0030.00517.76
8.0.300.0070.00020.21
8.0.290.0040.00416.88
8.0.280.0000.00718.54
8.0.270.0080.00017.24
8.0.260.0070.00017.03
8.0.250.0030.00517.08
8.0.240.0000.00717.16
8.0.230.0030.00317.24
8.0.220.0040.00417.13
8.0.210.0070.00017.16
8.0.200.0000.00717.14
8.0.190.0070.00017.18
8.0.180.0050.00317.16
8.0.170.0050.00316.98
8.0.160.0080.00017.08
8.0.150.0000.00817.05
8.0.140.0030.00617.03
8.0.130.0000.00513.48
8.0.120.0030.00617.11
8.0.110.0040.00416.98
8.0.100.0000.00816.95
8.0.90.0000.00717.17
8.0.80.0090.00617.18
8.0.70.0040.00417.08
8.0.60.0000.00816.98
8.0.50.0000.00917.02
8.0.30.0070.01117.04
8.0.20.0090.01117.35
8.0.10.0040.00417.19
8.0.00.0030.01617.02
7.4.330.0000.00713.29
7.4.320.0030.00316.79
7.4.300.0070.00016.93
7.4.290.0000.00716.78
7.4.280.0000.00816.75
7.4.270.0070.00016.82
7.4.260.0060.00013.45
7.4.250.0040.00416.78
7.4.240.0000.00816.82
7.4.230.0000.00816.66
7.4.220.0030.01816.83
7.4.210.0070.01416.88
7.4.200.0040.00416.76
7.4.190.0000.00717.07
7.4.160.0080.00816.99
7.4.150.0100.00616.61
7.4.140.0130.00316.77
7.4.130.0090.00916.85
7.4.120.0100.00716.59
7.4.110.0060.01216.63
7.4.100.0170.00016.62
7.4.90.0160.00716.87
7.4.80.0090.01219.39
7.4.70.0030.01516.59
7.4.60.0130.00316.75
7.4.50.0000.00716.94
7.4.40.0030.01016.68
7.4.30.0030.01416.74
7.4.00.0080.00915.12
7.3.330.0000.00713.61
7.3.320.0070.00013.55
7.3.310.0040.00416.66
7.3.300.0040.00416.45
7.3.290.0060.00816.58
7.3.280.0110.01116.58
7.3.270.0130.00316.60
7.3.260.0110.01116.84
7.3.250.0170.00316.56
7.3.240.0110.00816.63
7.3.230.0110.00816.54
7.3.210.0030.01516.65
7.3.200.0130.00316.92
7.3.190.0100.00716.58
7.3.180.0130.00316.54
7.3.170.0150.00816.73
7.3.160.0100.00716.80
7.3.120.0060.00815.05
7.3.110.0040.01414.98
7.3.100.0070.00715.14
7.3.90.0080.00515.15
7.3.80.0090.00315.39
7.3.70.0070.01015.16
7.3.60.0060.00315.18
7.3.50.0060.00915.09
7.3.40.0040.00715.17
7.3.30.0000.00915.14
7.3.20.0030.01316.68
7.3.10.0030.00616.88
7.3.00.0110.00316.89
7.2.330.0140.00316.93
7.2.320.0110.00716.89
7.2.310.0170.00416.71
7.2.300.0000.01816.87
7.2.290.0030.01416.78
7.2.250.0090.00915.43
7.2.240.0040.01515.52
7.2.230.0030.01015.33
7.2.220.0060.00615.20
7.2.210.0070.01015.27
7.2.200.0040.00815.47
7.2.190.0060.00615.20
7.2.180.0030.01015.30
7.2.170.0120.00315.42
7.2.00.0030.00919.47
7.1.330.0000.01515.97
7.1.320.0070.00716.31
7.1.310.0070.00716.14
7.1.300.0070.00416.04
7.1.290.0110.00415.98
7.1.280.0090.00615.96
7.1.270.0070.00715.93
7.1.260.0090.00616.07
7.1.100.0000.01018.42
7.1.70.0000.00917.40
7.1.60.0070.01719.30
7.1.50.0040.00717.30
7.1.00.0070.06022.48
7.0.200.0080.00316.98
7.0.140.0070.07022.08
7.0.120.0030.07322.18
7.0.60.0170.07720.00
7.0.50.0100.03317.88
7.0.40.0130.03320.27
7.0.30.0270.05320.22
7.0.20.0230.04320.22
7.0.10.0230.05020.18
7.0.00.0000.05320.19
5.6.280.0030.07020.93
5.6.210.0170.07320.70
5.6.200.0070.08318.15
5.6.190.0100.08020.50
5.6.180.0070.07020.64
5.6.170.0430.05720.51
5.6.160.0100.05020.50
5.6.150.0070.07718.18
5.6.140.0030.06018.24
5.6.130.0070.08718.18
5.6.120.0100.07321.03
5.6.110.0100.05321.14
5.6.100.0070.07721.00
5.6.90.0130.04021.05
5.6.80.0100.06020.53
5.6.70.4470.03720.39
5.5.350.0070.08020.34
5.5.340.0100.07017.95
5.5.330.0100.04720.43
5.5.320.0230.05320.23
5.5.310.0270.04720.34
5.5.300.0170.03718.07
5.5.290.0070.05018.08
5.5.280.0100.03720.82
5.5.270.0170.07020.66
5.5.260.0130.08320.88
5.5.250.0000.09020.73
5.5.240.0070.03720.28
5.4.450.0070.03719.41
5.4.440.0030.04019.54
5.4.430.0100.03319.56
5.4.420.0070.03719.30
5.4.410.0030.05019.05
5.4.400.0070.07718.99
5.4.390.0000.07019.08
5.4.380.0070.08018.93
5.4.370.0170.06719.00
5.4.360.0070.05319.01
5.4.350.0070.06019.16
5.4.340.0030.05318.98
5.4.320.0100.06019.25
5.4.310.0100.04319.25
5.4.300.0100.06718.98
5.4.290.0030.08018.92
5.4.280.0030.04719.24
5.4.270.0000.06319.24
5.4.260.0030.04319.25
5.4.250.0170.04019.15
5.4.240.0070.07319.14
5.4.230.0070.04319.07
5.4.220.0030.05319.14
5.4.210.0070.08019.20
5.4.200.0070.04718.98
5.4.190.0030.08019.23
5.4.180.0130.03719.00
5.4.170.0130.03718.96
5.4.160.0130.06719.16
5.4.150.0030.05319.14
5.4.140.0100.05016.39
5.4.130.0070.07316.43
5.4.120.0030.07316.36
5.4.110.0070.05316.48
5.4.100.0070.07716.35
5.4.90.0100.04016.42
5.4.80.0070.07716.43
5.4.70.0100.04716.44
5.4.60.0100.07016.37
5.4.50.0030.07316.58
5.4.40.0100.07016.43
5.4.30.0100.04316.46
5.4.20.0100.06316.41
5.4.10.0030.07716.51
5.4.00.0130.06715.75
5.3.290.0070.06714.72
5.3.280.0130.07314.63
5.3.270.0000.04314.79
5.3.260.0130.07314.54
5.3.250.0100.04714.66
5.3.240.0030.07714.70
5.3.230.0100.08014.69
5.3.220.0070.06014.66
5.3.210.0170.06714.50
5.3.200.0000.05014.52
5.3.190.0100.07714.66
5.3.180.0130.07014.53
5.3.170.0100.05314.65
5.3.160.0030.05714.67
5.3.150.0070.07314.50
5.3.140.0130.03714.61
5.3.130.0100.07314.65
5.3.120.0130.07014.59
5.3.110.0070.08014.64
5.3.100.0070.06314.11
5.3.90.0070.06713.95
5.3.80.0000.08014.09
5.3.70.0070.07714.21
5.3.60.0100.07014.05
5.3.50.0100.06313.99
5.3.40.0000.07313.99
5.3.30.0070.07313.98
5.3.20.0070.06713.73
5.3.10.0030.05713.70
5.3.00.0070.05313.73
5.2.170.0100.05711.24
5.2.160.0100.05711.24
5.2.150.0000.06311.08
5.2.140.0030.06711.17
5.2.130.0100.04311.20
5.2.120.0130.05711.04
5.2.110.0000.07011.30
5.2.100.0070.06011.15
5.2.90.0070.04711.11
5.2.80.0070.03311.21
5.2.70.0030.03011.30
5.2.60.0000.03711.04
5.2.50.0070.03011.03
5.2.40.0000.04011.04
5.2.30.0030.03011.05
5.2.20.0100.02311.01
5.2.10.0070.06010.92
5.2.00.0070.06310.83
5.1.60.0000.05710.11
5.1.50.0070.05010.13
5.1.40.0070.05010.09
5.1.30.0070.04710.45
5.1.20.0030.04710.40
5.1.10.0000.03310.11
5.1.00.0000.05310.16
5.0.50.0000.0509.46
5.0.40.0100.0279.46
5.0.30.0030.0309.46
5.0.20.0030.0409.46
5.0.10.0030.0239.46
5.0.00.0000.0409.46
4.4.90.0000.0179.46
4.4.80.0000.0209.46
4.4.70.0000.0179.46
4.4.60.0000.0279.46
4.4.50.0030.0309.46
4.4.40.0000.0379.46
4.4.30.0030.0409.46
4.4.20.0030.0279.46
4.4.10.0070.0239.46
4.4.00.0030.0509.46
4.3.110.0030.0239.46
4.3.100.0100.0309.46
4.3.90.0030.0239.46
4.3.80.0000.0579.46
4.3.70.0030.0279.46
4.3.60.0000.0379.46
4.3.50.0070.0339.46
4.3.40.0030.0539.46
4.3.30.0000.0339.46
4.3.20.0030.0309.46
4.3.10.0030.0339.46
4.3.00.0030.0239.46

preferences:
43.76 ms | 401 KiB | 5 Q