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 \*\//",$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.0090.00616.88
8.3.50.0150.00517.76
8.3.40.0170.00319.23
8.3.30.0090.00619.06
8.3.20.0040.00418.98
8.3.10.0080.00020.77
8.3.00.0060.00319.50
8.2.180.0090.00918.54
8.2.170.0110.00322.96
8.2.160.0090.00621.29
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.61
8.2.110.0110.00022.50
8.2.100.0080.00318.09
8.2.90.0000.00818.28
8.2.80.0090.00017.97
8.2.70.0080.00018.00
8.2.60.0030.00618.16
8.2.50.0040.00418.07
8.2.40.0050.00318.28
8.2.30.0020.00518.09
8.2.20.0050.00317.98
8.2.10.0050.00318.02
8.2.00.0100.00018.00
8.1.280.0080.00825.92
8.1.270.0030.00524.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00621.39
8.1.230.0040.00821.07
8.1.220.0000.00817.77
8.1.210.0000.00819.04
8.1.200.0070.00317.73
8.1.190.0050.00317.66
8.1.180.0030.00618.10
8.1.170.0000.00918.84
8.1.160.0080.00018.89
8.1.150.0050.00318.87
8.1.140.0030.00517.71
8.1.130.0050.00518.01
8.1.120.0070.00017.55
8.1.110.0030.00617.70
8.1.100.0040.00417.68
8.1.90.0040.00417.69
8.1.80.0030.00617.72
8.1.70.0020.00517.63
8.1.60.0080.00017.71
8.1.50.0050.00317.68
8.1.40.0040.00417.60
8.1.30.0040.00417.74
8.1.20.0080.00017.80
8.1.10.0040.00417.66
8.1.00.0030.00617.70
8.0.300.0080.00020.02
8.0.290.0040.00417.00
8.0.280.0030.00318.40
8.0.270.0040.00417.22
8.0.260.0030.00317.14
8.0.250.0000.00917.24
8.0.240.0000.00717.20
8.0.230.0050.00317.20
8.0.220.0040.00317.13
8.0.210.0070.00017.16
8.0.200.0000.00717.07
8.0.190.0040.00417.17
8.0.180.0000.00917.22
8.0.170.0060.00317.22
8.0.160.0000.00717.18
8.0.150.0090.00017.06
8.0.140.0050.00317.08
8.0.130.0060.00013.63
8.0.120.0040.00417.18
8.0.110.0000.00817.04
8.0.100.0050.00317.13
8.0.90.0040.00417.07
8.0.80.0170.00317.14
8.0.70.0000.00717.21
8.0.60.0060.00317.21
8.0.50.0040.00417.15
8.0.30.0100.01117.40
8.0.20.0130.00617.30
8.0.10.0050.00217.31
8.0.00.0100.00817.17
7.4.330.0030.00313.16
7.4.320.0000.00616.83
7.4.300.0060.00016.83
7.4.290.0000.00716.68
7.4.280.0050.00316.72
7.4.270.0000.00716.67
7.4.260.0000.00613.55
7.4.250.0000.00916.76
7.4.240.0000.00816.81
7.4.230.0070.00016.89
7.4.220.0030.01916.96
7.4.210.0070.00916.94
7.4.200.0000.00716.74
7.4.190.0080.00016.84
7.4.160.0120.00416.94
7.4.150.0060.01316.83
7.4.140.0120.00916.68
7.4.130.0140.00616.73
7.4.120.0150.00316.78
7.4.110.0090.00916.71
7.4.100.0070.01616.94
7.4.90.0150.00316.82
7.4.80.0180.00319.39
7.4.70.0090.00916.83
7.4.60.0070.01016.87
7.4.50.0080.00016.82
7.4.40.0060.00616.61
7.4.30.0150.01216.73
7.4.00.0090.00615.35
7.3.330.0090.00013.49
7.3.320.0060.00013.54
7.3.310.0070.00016.63
7.3.300.0000.00716.59
7.3.290.0160.00316.64
7.3.280.0100.00716.62
7.3.270.0110.00716.88
7.3.260.0030.01416.99
7.3.250.0110.00916.67
7.3.240.0100.00716.86
7.3.230.0120.00616.59
7.3.210.0100.00716.69
7.3.200.0070.01016.82
7.3.190.0060.01616.62
7.3.180.0060.00916.84
7.3.170.0030.01416.70
7.3.160.0090.01216.82
7.3.120.0080.00814.78
7.2.330.0140.01016.84
7.2.320.0040.01416.67
7.2.310.0210.00316.72
7.2.300.0030.01317.01
7.2.290.0120.00616.97
7.1.70.0060.00817.43
7.1.60.0060.01319.40
7.1.50.0100.01417.13
7.1.00.0070.07722.50
7.0.200.0200.00714.95
7.0.140.0070.06722.09
7.0.120.0100.06722.07
7.0.110.0070.05320.13
7.0.100.0230.04319.91
7.0.90.0500.04320.10
7.0.80.0230.03720.11
7.0.70.0370.03719.96
7.0.60.0270.04020.05
7.0.50.0400.04720.07
7.0.40.0030.04019.71
7.0.30.0030.05019.71
7.0.20.0070.04019.67
7.0.10.0030.04019.84
7.0.00.0030.05019.68
5.6.280.0030.07321.13
5.6.260.0100.06320.67
5.6.250.0100.07020.60
5.6.240.0070.04020.88
5.6.230.0030.04720.87
5.6.220.0100.07720.68
5.6.210.0100.05720.61
5.6.200.0000.05020.49
5.6.190.0030.04320.66
5.6.180.0000.04320.64
5.6.170.0000.04320.57
5.6.160.0030.04320.66
5.6.150.0070.08320.66
5.6.140.0100.03720.71
5.6.130.0130.03320.67
5.6.120.0000.04720.60
5.6.110.0030.06020.68
5.6.100.0100.04020.61
5.6.90.0070.04020.70
5.6.80.0100.03720.04
5.6.70.0030.04320.08
5.6.60.0030.04319.93
5.6.50.0070.03020.01
5.6.40.0070.04020.08
5.6.30.0100.07319.96
5.6.20.0000.04319.92
5.6.10.0130.03719.93
5.6.00.0070.03719.98
5.5.380.0070.04017.71
5.5.370.0100.03717.61
5.5.360.0070.03717.51
5.5.350.0030.03317.55
5.5.340.0000.04318.10
5.5.330.0000.04318.10
5.5.320.0070.07718.13
5.5.310.0030.04018.22
5.5.300.0070.04018.13
5.5.290.0100.06018.14
5.5.280.0070.06717.91
5.5.270.0070.03318.09
5.5.260.0000.04317.93
5.5.250.0030.04017.87
5.5.240.0070.03717.22
5.5.230.0030.05317.29
5.5.220.0070.03717.29
5.5.210.0070.03717.45
5.5.200.0100.04017.51
5.5.190.0070.03717.46
5.5.180.0000.04717.48
5.5.160.0030.04717.58
5.5.150.0000.06717.26
5.5.140.0000.04317.42
5.5.130.0030.03317.44
5.5.120.0070.04317.45
5.5.110.0070.03717.45
5.5.100.0070.05717.16
5.5.90.0000.03717.38
5.5.80.0030.04717.18
5.5.70.0030.04017.29
5.5.60.0070.04017.19
5.5.50.0030.03717.34
5.5.40.0000.03317.07
5.5.30.0030.03317.20
5.5.20.0070.03317.48
5.5.10.0030.03017.14
5.5.00.0030.03717.14
5.4.450.0030.04019.66
5.4.440.0070.04319.34
5.4.430.0100.03319.55
5.4.420.0000.06019.32
5.4.410.0030.04019.36
5.4.400.0030.05719.14
5.4.390.0030.04018.95
5.4.380.0070.05319.25
5.4.370.0030.04019.03
5.4.360.0030.04319.14
5.4.350.0100.04319.02
5.4.340.0000.04019.18
5.4.320.0030.04319.22
5.4.310.0070.03019.16
5.4.300.0000.04018.95
5.4.290.0070.03719.01
5.4.280.0030.04719.31
5.4.270.0030.03719.09
5.4.260.0030.07719.00
5.4.250.0030.04319.00
5.4.240.0070.03319.01
5.4.230.0000.05018.99
5.4.220.0030.04019.02
5.4.210.0070.03719.16
5.4.200.0130.02319.33
5.4.190.0000.04319.32
5.4.180.0000.03319.02
5.4.170.0070.03719.10
5.4.160.0100.02318.99
5.4.150.0070.03719.15
5.4.140.0000.04016.57
5.4.130.0030.04016.31
5.4.120.0000.04016.55
5.4.110.0100.03016.56
5.4.100.0100.04316.48
5.4.90.0030.03716.52
5.4.80.0000.04016.54
5.4.70.0030.03016.40
5.4.60.0030.03016.55
5.4.50.0030.03016.25
5.4.40.0130.02016.44
5.4.30.0030.03316.53
5.4.20.0030.03016.54
5.4.10.0070.03316.63
5.4.00.0030.03315.98
5.3.290.0000.04314.78
5.3.280.0100.06714.76
5.3.270.0100.07714.71
5.3.260.0030.03714.48
5.3.250.0030.05014.48
5.3.240.0000.04014.66
5.3.230.0030.03714.65
5.3.220.0030.03714.73
5.3.210.0070.03314.57
5.3.200.0000.04014.61
5.3.190.0070.03314.62
5.3.180.0100.03314.60
5.3.170.0000.04014.54
5.3.160.0000.04314.60
5.3.150.0000.03714.60
5.3.140.0030.03314.53
5.3.130.0030.03314.59
5.3.120.0000.03314.55
5.3.110.0030.03714.57
5.3.100.0000.03314.03
5.3.90.0070.03314.14
5.3.80.0030.03014.11
5.3.70.0000.03314.05
5.3.60.0030.03014.14
5.3.50.0070.02714.09
5.3.40.0000.03314.11
5.3.30.0130.02714.16
5.3.20.0000.03313.72
5.3.10.0030.02713.67
5.3.00.0000.03013.66
5.2.170.0000.02712.50
5.2.160.0070.02312.50
5.2.150.0030.02312.50
5.2.140.0000.02712.50
5.2.130.0030.02312.50
5.2.120.0070.02012.50
5.2.110.0030.02312.50
5.2.100.0030.02312.50
5.2.90.0030.03012.50
5.2.80.0000.02712.50
5.2.70.0070.02712.50
5.2.60.0000.02712.50
5.2.50.0000.02712.50
5.2.40.0030.02312.50
5.2.30.0070.02012.50
5.2.20.0000.02712.50
5.2.10.0030.02712.50
5.2.00.0070.02012.50
5.1.60.0000.02312.50
5.1.50.0000.02312.50
5.1.40.0000.02012.50
5.1.30.0030.02312.50
5.1.20.0030.02012.50
5.1.10.0000.02712.50
5.1.00.0100.01312.50
5.0.50.0000.01712.50
5.0.40.0000.02012.50
5.0.30.0030.02312.50
5.0.20.0000.01712.50
5.0.10.0100.01012.50
5.0.00.0030.02312.50
4.4.90.0000.01312.50
4.4.80.0000.01312.50
4.4.70.0030.01312.50
4.4.60.0030.01012.50
4.4.50.0000.01312.50
4.4.40.0000.02312.50
4.4.30.0000.01312.50
4.4.20.0000.01712.50
4.4.10.0000.01312.50
4.4.00.0030.02012.50
4.3.110.0000.01312.50
4.3.100.0030.01012.50
4.3.90.0030.01012.50
4.3.80.0000.02012.50
4.3.70.0000.01312.50
4.3.60.0000.02712.50
4.3.50.0000.01312.50
4.3.40.0030.01712.50
4.3.30.0000.01312.50
4.3.20.0000.01712.50
4.3.10.0030.01312.50
4.3.00.0000.01312.50

preferences:
43.28 ms | 401 KiB | 5 Q