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('/([^ \t\n;]+?):(.+?);/',$matches[2][$key],$elements); foreach ($elements[1] as $k => $v) { $realMatches[$val][] = array($v,trim($elements[2][$k])); } } return $realMatches; } print_r(parseCss(' /* 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 */'));

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.0160.00618.68
8.3.50.0080.01222.08
8.3.40.0170.00318.92
8.3.30.0110.00319.15
8.3.20.0000.00720.34
8.3.10.0040.00421.89
8.3.00.0110.00722.43
8.2.180.0110.00716.75
8.2.170.0040.01222.96
8.2.160.0100.01021.02
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0000.00819.61
8.2.110.0000.01120.47
8.2.100.0080.00417.89
8.2.90.0060.00319.30
8.2.80.0040.00417.97
8.2.70.0040.00417.88
8.2.60.0040.00417.93
8.2.50.0050.00318.10
8.2.40.0030.00718.34
8.2.30.0040.00418.20
8.2.20.0000.00817.97
8.2.10.0030.00518.00
8.2.00.0040.00417.85
8.1.280.0150.00025.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0110.00728.09
8.1.240.0040.00421.03
8.1.230.0110.00018.05
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0030.00517.60
8.1.180.0000.00818.10
8.1.170.0050.00318.78
8.1.160.0000.00822.05
8.1.150.0000.00818.79
8.1.140.0080.00017.55
8.1.130.0030.00317.91
8.1.120.0070.00017.57
8.1.110.0040.00417.62
8.1.100.0000.01017.57
8.1.90.0000.00717.68
8.1.80.0040.00417.58
8.1.70.0000.00717.63
8.1.60.0030.00617.68
8.1.50.0000.00817.71
8.1.40.0000.00817.70
8.1.30.0080.00017.82
8.1.20.0000.00817.82
8.1.10.0000.00817.70
8.1.00.0050.00317.60
8.0.300.0000.00818.77
8.0.290.0030.00616.84
8.0.280.0000.00718.60
8.0.270.0040.00417.19
8.0.260.0070.00017.02
8.0.250.0050.00317.11
8.0.240.0050.00217.15
8.0.230.0030.00317.14
8.0.220.0030.00317.11
8.0.210.0030.00317.15
8.0.200.0030.00317.04
8.0.190.0040.00417.15
8.0.180.0040.00417.11
8.0.170.0040.00417.10
8.0.160.0000.00816.98
8.0.150.0000.00717.11
8.0.140.0070.00017.01
8.0.130.0040.00413.48
8.0.120.0000.00717.05
8.0.110.0030.00517.02
8.0.100.0050.00216.89
8.0.90.0000.00717.04
8.0.80.0030.01817.02
8.0.70.0040.00417.06
8.0.60.0000.00817.11
8.0.50.0040.00416.99
8.0.30.0100.01017.47
8.0.20.0080.01617.40
8.0.10.0030.00517.12
8.0.00.0100.00816.99
7.4.330.0050.00015.10
7.4.320.0040.00416.87
7.4.300.0070.00016.88
7.4.290.0030.00316.88
7.4.280.0030.00316.75
7.4.270.0030.00316.80
7.4.260.0030.00516.84
7.4.250.0020.00516.77
7.4.240.0060.00216.84
7.4.230.0020.00516.80
7.4.220.0000.01516.95
7.4.210.0080.00916.77
7.4.200.0030.00316.97
7.4.190.0040.00416.57
7.4.160.0080.00816.80
7.4.150.0100.01317.40
7.4.140.0100.01017.86
7.4.130.0070.01016.76
7.4.120.0060.01016.82
7.4.110.0100.01316.84
7.4.100.0130.00316.82
7.4.90.0110.00816.68
7.4.80.0130.00319.39
7.4.70.0120.00616.82
7.4.60.0060.01116.77
7.4.50.0050.00016.40
7.4.40.0030.01022.77
7.4.30.0140.00316.70
7.4.00.0070.00715.19
7.3.330.0030.00313.53
7.3.320.0050.00013.38
7.3.310.0000.00716.63
7.3.300.0000.00816.55
7.3.290.0060.01216.58
7.3.280.0060.01216.57
7.3.270.0030.01517.40
7.3.260.0180.00616.82
7.3.250.0150.00516.53
7.3.240.0140.00316.59
7.3.230.0140.01016.67
7.3.210.0060.01116.53
7.3.200.0040.01419.39
7.3.190.0130.01016.84
7.3.180.0130.00316.43
7.3.170.0120.00916.71
7.3.160.0110.00716.59
7.3.120.0000.01415.23
7.2.330.0070.01417.00
7.2.320.0140.00416.84
7.2.310.0080.00816.93
7.2.300.0030.01316.98
7.2.290.0100.00716.87
7.2.00.0060.00919.81
7.1.100.0350.00718.21
7.1.70.0030.00917.52
7.1.60.0030.01419.82
7.1.50.0070.01417.32
7.1.00.0100.07022.36
7.0.200.0090.00516.67
7.0.140.0030.07322.08
7.0.100.0070.08719.98
7.0.90.0130.07319.99
7.0.80.0100.08020.02
7.0.70.0030.08719.86
7.0.60.0100.08019.95
7.0.50.0230.06720.41
7.0.40.0130.07720.19
7.0.30.0100.05020.19
7.0.20.0030.09020.10
7.0.10.0100.07720.18
7.0.00.0070.08320.12
5.6.280.0070.07020.79
5.6.250.0100.07720.79
5.6.240.0100.05320.71
5.6.230.0070.08020.62
5.6.220.0130.05020.54
5.6.210.0130.04320.60
5.6.200.0230.06721.07
5.6.190.0070.05021.15
5.6.180.0100.08721.10
5.6.170.0170.06721.15
5.6.160.0070.07021.06
5.6.150.0000.09021.08
5.6.140.0030.09021.18
5.6.130.0070.08721.18
5.6.120.0100.08021.03
5.6.110.0200.07721.05
5.6.100.0070.07721.17
5.6.90.0100.07721.00
5.6.80.0170.06020.43
5.6.70.0130.05320.48
5.6.60.0100.08320.40
5.6.50.0230.07020.54
5.6.40.0100.08020.44
5.6.30.0100.08020.36
5.6.20.0130.07720.28
5.6.10.0100.07320.47
5.6.00.0100.06720.36
5.5.380.0100.08020.41
5.5.370.0200.07320.44
5.5.360.0030.08720.37
5.5.350.0030.08720.47
5.5.340.0030.08320.90
5.5.330.0100.04720.66
5.5.320.0130.08020.85
5.5.310.0070.08020.90
5.5.300.0100.07320.82
5.5.290.0070.08720.88
5.5.280.0170.07320.77
5.5.270.0070.04720.74
5.5.260.0030.04020.78
5.5.250.0070.07020.74
5.5.240.0100.07720.32
5.5.230.0130.07320.30
5.5.220.0030.07720.21
5.5.210.0170.06320.20
5.5.200.0030.08020.23
5.5.190.0030.08320.23
5.5.180.0130.07720.24
5.5.160.0130.07320.29
5.5.150.0130.03720.12
5.5.140.0030.07720.22
5.5.130.0030.07720.26
5.5.120.0030.07720.25
5.5.110.0070.07720.24
5.5.100.0200.06319.96
5.5.90.0030.08320.16
5.5.80.0100.08020.09
5.5.70.0100.04720.07
5.5.60.0130.07320.10
5.5.50.0070.05020.11
5.5.40.0130.07720.07
5.5.30.0100.07320.08
5.5.20.0170.07020.11
5.5.10.0000.09320.07
5.5.00.0070.07719.95
5.4.450.0070.08019.51
5.4.440.0070.04019.46
5.4.430.0070.07319.55
5.4.420.0070.08019.44
5.4.410.0200.06019.23
5.4.400.0170.07019.15
5.4.390.0030.07719.05
5.4.380.0030.07319.18
5.4.370.0100.07719.21
5.4.360.0070.08019.05
5.4.350.0100.04018.85
5.4.340.0130.06019.24
5.4.320.0030.08019.09
5.4.310.0070.07319.03
5.4.300.0100.06018.85
5.4.290.0030.08019.13
5.4.280.0070.08019.04
5.4.270.0100.07318.88
5.4.260.0030.04319.14
5.4.250.0130.07318.84
5.4.240.0030.04719.03
5.4.230.0170.06718.89
5.4.220.0030.08319.20
5.4.210.0100.06719.18
5.4.200.0170.07319.18
5.4.190.0030.07319.04
5.4.180.0130.06319.15
5.4.170.0130.04319.02
5.4.160.0100.07319.02
5.4.150.0170.06718.87
5.4.140.0070.07316.34
5.4.130.0030.07716.51
5.4.120.0070.06716.40
5.4.110.0030.04316.35
5.4.100.0070.07016.45
5.4.90.0030.07316.49
5.4.80.0030.04716.54
5.4.70.0070.06716.47
5.4.60.0270.04316.45
5.4.50.0070.04016.34
5.4.40.0030.06016.50
5.4.30.0100.03316.46
5.4.20.0100.03016.25
5.4.10.0030.03716.31
5.4.00.0070.03315.88
5.3.290.0130.06714.66
5.3.280.0030.08314.64
5.3.270.0130.07714.75
5.3.260.0000.07714.76
5.3.250.0070.07314.69
5.3.240.0130.06714.57
5.3.230.0030.07714.75
5.3.220.0130.06714.57
5.3.210.0130.07314.68
5.3.200.0200.05714.65
5.3.190.0100.07714.59
5.3.180.0070.07314.61
5.3.170.0100.07014.56
5.3.160.0130.06714.64
5.3.150.0070.07314.63
5.3.140.0000.04014.61
5.3.130.0030.03714.52
5.3.120.0030.04314.49
5.3.110.0030.04014.63
5.3.100.0000.04014.10
5.3.90.0000.04013.98
5.3.80.0030.03714.09
5.3.70.0000.04014.10
5.3.60.0030.03713.97
5.3.50.0070.03313.99
5.3.40.0030.04013.86
5.3.30.0100.05014.02
5.3.20.0030.03313.81
5.3.10.0030.03313.70
5.3.00.0070.03013.68
5.2.170.0000.03311.04
5.2.160.0000.03011.19
5.2.150.0030.03011.10
5.2.140.0030.03011.15
5.2.130.0070.02311.15
5.2.120.0030.02711.17
5.2.110.0030.03011.15
5.2.100.0100.02311.12
5.2.90.0030.04011.11
5.2.80.0070.04311.23
5.2.70.0000.03010.98
5.2.60.0030.04311.13
5.2.50.0030.02710.95
5.2.40.0000.03310.94
5.2.30.0130.02711.13
5.2.20.0000.03011.00
5.2.10.0000.03011.02
5.2.00.0030.02310.79
5.1.60.0000.03010.09
5.1.50.0000.0409.84
5.1.40.0000.02710.00
5.1.30.0030.02310.37
5.1.20.0000.02710.48
5.1.10.0000.0309.97
5.1.00.0000.03010.16
5.0.50.0000.0208.68
5.0.40.0030.0208.48
5.0.30.0030.0378.14
5.0.20.0070.0178.05
5.0.10.0030.0238.19
5.0.00.0070.0278.02
4.4.90.0000.0377.82
4.4.80.0000.0137.82
4.4.70.0030.0277.82
4.4.60.0000.0177.82
4.4.50.0000.0237.82
4.4.40.0000.0277.82
4.4.30.0000.0177.82
4.4.20.0000.0237.82
4.4.10.0000.0177.82
4.4.00.0100.0177.82
4.3.110.0000.0177.82
4.3.100.0000.0137.82
4.3.90.0030.0107.82
4.3.80.0000.0277.82
4.3.70.0000.0177.82
4.3.60.0000.0177.82
4.3.50.0000.0177.82
4.3.40.0000.0237.82
4.3.30.0000.0177.82
4.3.20.0000.0207.82
4.3.10.0000.0177.82
4.3.00.0000.0137.82

preferences:
49.71 ms | 401 KiB | 5 Q