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(); print_R($matches); $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.0140.00716.59
8.3.50.0210.00917.49
8.3.40.0090.00618.98
8.3.30.0140.00019.14
8.3.20.0100.01019.07
8.3.10.0030.00520.73
8.3.00.0040.00417.75
8.2.180.0080.01216.75
8.2.170.0120.00322.96
8.2.160.0110.00722.28
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00021.09
8.2.110.0070.00321.13
8.2.100.0060.00617.98
8.2.90.0000.00919.17
8.2.80.0080.00017.93
8.2.70.0000.00917.88
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0080.00020.00
8.2.30.0000.00818.05
8.2.20.0030.00617.91
8.2.10.0040.00717.97
8.2.00.0060.00317.98
8.1.280.0070.01725.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0070.00322.48
8.1.230.0040.00820.97
8.1.220.0080.00017.74
8.1.210.0040.00418.88
8.1.200.0050.00517.47
8.1.190.0040.00417.66
8.1.180.0040.00418.10
8.1.170.0040.00418.89
8.1.160.0020.00518.97
8.1.150.0040.00418.66
8.1.140.0040.00417.67
8.1.130.0000.00717.79
8.1.120.0000.00717.65
8.1.110.0000.00817.66
8.1.100.0000.00717.61
8.1.90.0040.00417.51
8.1.80.0040.00417.65
8.1.70.0000.00717.58
8.1.60.0090.00017.62
8.1.50.0000.00717.68
8.1.40.0050.00317.61
8.1.30.0060.00317.73
8.1.20.0030.00517.74
8.1.10.0030.00517.75
8.1.00.0090.00017.68
8.0.300.0000.00820.10
8.0.290.0040.00417.00
8.0.280.0000.00718.56
8.0.270.0000.00816.89
8.0.260.0000.00716.98
8.0.250.0100.00017.14
8.0.240.0040.00717.06
8.0.230.0000.00717.09
8.0.220.0070.00017.01
8.0.210.0030.00517.10
8.0.200.0000.00617.16
8.0.190.0000.00716.98
8.0.180.0050.00316.93
8.0.170.0000.00817.09
8.0.160.0040.00417.14
8.0.150.0040.00416.99
8.0.140.0040.00417.05
8.0.130.0080.00013.55
8.0.120.0080.00017.02
8.0.110.0030.00317.04
8.0.100.0040.00416.87
8.0.90.0040.00416.92
8.0.80.0100.00717.07
8.0.70.0040.00416.97
8.0.60.0000.00716.86
8.0.50.0040.00416.94
8.0.30.0120.00717.42
8.0.20.0150.01317.11
8.0.10.0030.00617.00
8.0.00.0110.00816.98
7.4.330.0000.00513.22
7.4.320.0000.00616.75
7.4.300.0040.00416.72
7.4.290.0000.00816.78
7.4.280.0060.00316.73
7.4.270.0000.00716.88
7.4.260.0050.00013.51
7.4.250.0000.00816.68
7.4.240.0040.00416.77
7.4.230.0000.00716.57
7.4.220.0000.02116.84
7.4.210.0080.00716.80
7.4.200.0070.00016.70
7.4.190.0040.00416.64
7.4.160.0060.01016.76
7.4.150.0130.00616.62
7.4.140.0070.01016.84
7.4.130.0070.01116.69
7.4.120.0080.00816.84
7.4.110.0100.00716.70
7.4.100.0070.01016.67
7.4.90.0110.00716.77
7.4.80.0130.00616.68
7.4.70.0060.01116.68
7.4.60.0070.01016.76
7.4.50.0030.00316.77
7.4.40.0090.00616.51
7.4.30.0130.00316.83
7.4.10.0070.01015.37
7.4.00.0090.00614.98
7.3.330.0000.00613.47
7.3.320.0000.00713.53
7.3.310.0000.00816.55
7.3.300.0030.00316.54
7.3.290.0100.01016.55
7.3.280.0100.00916.52
7.3.270.0150.00616.77
7.3.260.0110.01016.61
7.3.250.0110.00816.82
7.3.240.0120.00416.52
7.3.230.0140.00316.86
7.3.210.0130.00416.61
7.3.200.0110.00519.39
7.3.190.0120.00916.61
7.3.180.0170.00016.57
7.3.170.0030.01316.72
7.3.160.0090.01216.53
7.3.130.0030.01415.05
7.3.120.0050.01215.15
7.3.110.0100.00814.97
7.3.100.0060.00715.19
7.3.90.0070.00915.17
7.3.80.0070.00715.05
7.3.70.0090.00514.99
7.3.60.0100.00615.13
7.3.50.0000.01515.00
7.3.40.0060.00714.90
7.3.30.0050.00914.87
7.3.20.0090.00416.93
7.3.10.0040.01216.75
7.3.00.0080.00716.91
7.2.330.0060.01216.92
7.2.320.0030.01316.94
7.2.310.0120.01216.97
7.2.300.0120.00816.99
7.2.290.0080.00816.87
7.2.260.0100.00715.34
7.2.250.0070.01115.16
7.2.240.0080.00815.27
7.2.230.0080.00815.27
7.2.220.0090.01015.14
7.2.210.0080.00615.18
7.2.200.0060.00915.32
7.2.190.0110.00715.34
7.2.180.0100.00215.09
7.2.170.0080.00815.25
7.2.160.0090.00615.39
7.2.150.0030.00917.02
7.2.140.0080.00816.94
7.2.130.0060.00717.24
7.2.120.0060.00917.20
7.2.110.0090.00817.13
7.2.100.0030.00917.10
7.2.90.0040.01117.11
7.2.80.0030.01017.13
7.2.70.0040.00817.19
7.2.60.0020.01017.16
7.2.50.0070.00717.18
7.2.40.0070.00817.24
7.2.30.0090.00317.14
7.2.20.0070.00717.09
7.2.10.0050.00717.08
7.2.00.0040.01217.73
7.1.330.0090.00516.06
7.1.320.0050.01216.03
7.1.310.0060.00716.22
7.1.300.0070.00815.92
7.1.290.0060.00815.94
7.1.280.0040.01015.93
7.1.270.0080.00515.95
7.1.260.0060.00816.02
7.1.250.0050.00916.07
7.1.240.0000.01115.83
7.1.230.0030.01015.95
7.1.220.0000.00815.98
7.1.210.0070.00715.88
7.1.200.0040.00816.20
7.1.190.0120.00016.13
7.1.180.0070.00716.16
7.1.170.0040.01115.92
7.1.160.0000.01016.11
7.1.150.0000.01115.93
7.1.140.0030.00815.84
7.1.130.0110.00415.75
7.1.120.0090.00915.71
7.1.110.0060.00615.77
7.1.100.0030.01017.08
7.1.90.0070.00716.02
7.1.80.0040.01115.73
7.1.70.0060.00716.46
7.1.60.0050.00917.72
7.1.50.0050.01416.51
7.1.40.0120.00315.76
7.1.30.0000.01215.79
7.1.20.0070.00715.85
7.1.10.0060.00615.82
7.1.00.0070.02519.13
7.0.330.0060.00615.57
7.0.320.0030.00815.47
7.0.310.0030.01315.61
7.0.300.0100.00315.52
7.0.290.0060.00615.58
7.0.280.0050.00815.75
7.0.270.0060.00615.47
7.0.260.0060.00315.48
7.0.250.0100.00715.75
7.0.240.0070.00415.52
7.0.230.0070.00715.40
7.0.220.0060.01215.47
7.0.210.0090.00615.56
7.0.200.0060.00416.32
7.0.190.0030.01215.74
7.0.180.0060.00915.55
7.0.170.0030.01015.77
7.0.160.0070.00315.50
7.0.150.0080.00315.49
7.0.140.0060.03618.90
7.0.130.0000.01615.64
7.0.120.0050.04118.71
7.0.110.0100.00615.60
7.0.100.0000.01215.59
7.0.90.0130.00015.73
7.0.80.0050.00515.79
7.0.70.0070.00315.35
7.0.60.0090.03917.82
7.0.50.0050.04516.61
7.0.40.0070.03216.99
7.0.30.0290.02516.85
7.0.20.0130.03216.91
7.0.10.0080.02216.96
7.0.00.0090.03616.81
5.6.400.0060.01014.83
5.6.390.0030.00914.43
5.6.380.0070.00314.50
5.6.370.0070.01014.25
5.6.360.0060.00914.66
5.6.350.0060.00614.82
5.6.340.0000.01414.94
5.6.330.0100.01014.93
5.6.320.0110.00314.78
5.6.310.0030.01314.76
5.6.300.0130.00014.55
5.6.290.0090.00614.25
5.6.280.0120.03317.84
5.6.270.0100.00714.80
5.6.260.0070.01014.64
5.6.250.0090.00314.38
5.6.240.0100.00314.80
5.6.230.0030.01014.33
5.6.220.0040.01114.90
5.6.210.0120.01817.44
5.6.200.0020.03016.40
5.6.190.0150.03317.48
5.6.180.1870.02217.50
5.6.170.0150.02317.59
5.6.160.0080.04217.40
5.6.150.0090.03516.17
5.6.140.0080.04116.47
5.6.130.0050.03516.37
5.6.120.0080.02217.88
5.6.110.0080.04317.80
5.6.100.0100.04717.72
5.6.90.0070.03217.68
5.6.80.0030.04517.57
5.6.70.2200.02417.45
5.6.60.0100.00714.48
5.6.50.0120.00014.64
5.6.40.0070.01014.50
5.6.30.0060.00614.27
5.6.20.0060.00914.32
5.6.10.0000.01814.48
5.6.00.0040.00814.51
5.5.380.0030.00914.55
5.5.370.0120.00614.44
5.5.360.0100.00714.69
5.5.350.0190.03917.55
5.5.340.0050.03016.25
5.5.330.0030.03217.22
5.5.320.2100.02817.36
5.5.310.0180.04217.19
5.5.300.0070.02616.31
5.5.290.0050.04416.28
5.5.280.0100.04317.73
5.5.270.0050.05217.55
5.5.260.0080.03717.65
5.5.250.0030.02517.50
5.5.240.0150.02417.36
5.5.230.0070.01014.32
5.5.220.0030.01214.56
5.5.210.0070.00314.43
5.5.200.0110.00714.32
5.5.190.0060.00914.41
5.5.180.0100.00714.25
5.5.170.0000.01814.58
5.5.160.0030.00614.21
5.5.150.0090.00614.44
5.5.140.0100.00714.54
5.5.130.0030.01314.44
5.5.120.0050.00514.51
5.5.110.0000.01414.39
5.5.100.0040.01114.48
5.5.90.0050.00514.33
5.5.80.0060.01214.55
5.5.70.0130.00614.23
5.5.60.0090.00614.49
5.5.50.0040.00714.31
5.5.40.0070.00714.55
5.5.30.0090.00914.59
5.5.20.0080.00314.70
5.5.10.0090.00614.31
5.5.00.0100.00714.56
5.4.450.0120.03615.18
5.4.440.0090.02415.47
5.4.430.0040.02415.38
5.4.420.0030.04315.05
5.4.410.0030.02515.15
5.4.400.0070.03514.86
5.4.390.0050.04315.13
5.4.380.0040.02915.32
5.4.370.0020.03115.17
5.4.360.0000.02715.10
5.4.350.0060.03814.98
5.4.340.0070.04215.10
5.4.330.0060.00311.42
5.4.320.0020.02815.11
5.4.310.0050.02715.28
5.4.300.0030.02615.31
5.4.290.0030.02215.13
5.4.280.0080.04014.98
5.4.270.0050.04015.03
5.4.260.0050.04015.01
5.4.250.0090.03315.14
5.4.240.0100.03815.14
5.4.230.0050.02915.37
5.4.220.0040.02514.96
5.4.210.0050.03615.23
5.4.200.0050.02415.14
5.4.190.0080.04215.01
5.4.180.0110.03815.07
5.4.170.0050.02515.03
5.4.160.0100.03715.26
5.4.150.0050.02715.16
5.4.140.0030.02514.04
5.4.130.0070.03113.82
5.4.120.0070.02713.61
5.4.110.0060.02713.61
5.4.100.0100.03713.86
5.4.90.0090.02513.91
5.4.80.0030.02313.88
5.4.70.0050.01913.92
5.4.60.0080.04013.83
5.4.50.0070.02213.88
5.4.40.0100.03513.79
5.4.30.0080.04013.83
5.4.20.0040.03213.75
5.4.10.0080.03813.72
5.4.00.0080.03713.69
5.3.290.0060.02312.78
5.3.280.0030.04312.65
5.3.270.0030.02812.73
5.3.260.0070.02612.72
5.3.250.0030.03712.72
5.3.240.0060.04312.71
5.3.230.0050.02312.61
5.3.220.0070.02512.59
5.3.210.0020.04512.63
5.3.200.0050.04112.45
5.3.190.0050.03712.71
5.3.180.0060.02412.83
5.3.170.0020.02312.72
5.3.160.0090.03912.72
5.3.150.0050.04112.64
5.3.140.0080.03212.77
5.3.130.0080.03312.47
5.3.120.0070.02212.50
5.3.110.0010.02812.68
5.3.100.0050.02312.41
5.3.90.0060.01912.43
5.3.80.0070.03512.25
5.3.70.0020.02212.31
5.3.60.0080.02012.38
5.3.50.0060.04312.35
5.3.40.0030.04212.25
5.3.30.0080.02012.33
5.3.20.0130.02412.25
5.3.10.0030.02711.95
5.3.00.0090.03612.10
5.2.170.0070.05711.16
5.2.160.0100.03711.21
5.2.150.0000.06311.08
5.2.140.0170.04311.21
5.2.130.0030.05011.07
5.2.120.0030.06311.13
5.2.110.0030.06711.28
5.2.100.0000.05011.07
5.2.90.0070.04711.17
5.2.80.0070.03711.12
5.2.70.0100.06011.16
5.2.60.0030.04011.10
5.2.50.0000.03711.20
5.2.40.0000.03310.96
5.2.30.0030.03011.15
5.2.20.0030.06710.87
5.2.10.0000.06710.80
5.2.00.0030.06010.69
5.1.60.0030.03710.00
5.1.50.0000.06010.10
5.1.40.0170.04310.06
5.1.30.0070.05010.41
5.1.20.0070.05310.39
5.1.10.0100.05310.13
5.1.00.0000.05710.07
5.0.50.0030.0478.63
5.0.40.0000.0238.41
5.0.30.0070.0538.20
5.0.20.0100.0338.20
5.0.10.0000.0478.20
5.0.00.0000.0338.20
4.4.90.0030.0278.20
4.4.80.0000.0378.20
4.4.70.0070.0308.20
4.4.60.0030.0178.20
4.4.50.0000.0208.20
4.4.40.0000.0378.20
4.4.30.0030.0378.20
4.4.20.0000.0408.20
4.4.10.0070.0338.20
4.4.00.0000.0408.20
4.3.110.0030.0138.20
4.3.100.0000.0378.20
4.3.90.0030.0178.20
4.3.80.0070.0478.20
4.3.70.0030.0378.20
4.3.60.0030.0238.20
4.3.50.0100.0308.20
4.3.40.0000.0438.20
4.3.30.0070.0178.20
4.3.20.0000.0338.20
4.3.10.0030.0278.20
4.3.00.0000.0378.20

preferences:
46.03 ms | 401 KiB | 5 Q