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; } 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.0070.00716.75
8.3.50.0160.00716.62
8.3.40.0120.00318.87
8.3.30.0110.00419.04
8.3.20.0040.00419.11
8.3.10.0080.00020.73
8.3.00.0030.00619.63
8.2.180.0170.00316.75
8.2.170.0040.01122.96
8.2.160.0110.00421.14
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00420.08
8.2.110.0030.00721.30
8.2.100.0000.01117.97
8.2.90.0080.00019.44
8.2.80.0060.00619.09
8.2.70.0030.00617.61
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0040.00418.28
8.2.30.0030.00518.20
8.2.20.0060.00317.88
8.2.10.0080.00017.93
8.2.00.0000.01017.82
8.1.280.0100.01325.92
8.1.270.0030.00524.66
8.1.260.0030.00626.35
8.1.250.0000.00828.09
8.1.240.0110.00020.89
8.1.230.0090.00321.14
8.1.220.0040.00417.91
8.1.210.0040.00419.04
8.1.200.0000.00917.60
8.1.190.0080.00017.78
8.1.180.0040.00418.10
8.1.170.0080.00019.03
8.1.160.0040.00418.96
8.1.150.0050.00318.88
8.1.140.0000.00717.69
8.1.130.0030.00317.87
8.1.120.0040.00417.71
8.1.110.0070.00017.65
8.1.100.0040.00417.64
8.1.90.0040.00417.62
8.1.80.0000.00717.63
8.1.70.0000.00817.60
8.1.60.0000.00817.78
8.1.50.0040.00417.63
8.1.40.0030.00617.68
8.1.30.0030.00517.88
8.1.20.0000.01217.84
8.1.10.0000.00917.79
8.1.00.0000.00817.60
8.0.300.0030.00520.10
8.0.290.0080.00017.00
8.0.280.0000.00718.36
8.0.270.0070.00017.23
8.0.260.0000.00717.05
8.0.250.0040.00417.08
8.0.240.0000.00717.21
8.0.230.0000.00717.03
8.0.220.0030.00517.11
8.0.210.0000.00717.05
8.0.200.0030.00317.01
8.0.190.0040.00417.21
8.0.180.0000.00917.20
8.0.170.0030.00617.13
8.0.160.0030.00417.06
8.0.150.0030.00616.91
8.0.140.0080.00017.06
8.0.130.0030.00313.55
8.0.120.0040.00416.89
8.0.110.0030.00616.97
8.0.100.0000.00717.03
8.0.90.0050.00216.96
8.0.80.0030.01217.03
8.0.70.0000.00717.09
8.0.60.0040.00417.07
8.0.50.0030.00517.12
8.0.30.0130.01017.40
8.0.20.0070.01117.31
8.0.10.0040.00417.09
8.0.00.0150.00517.06
7.4.330.0050.00013.25
7.4.320.0030.00316.78
7.4.300.0050.00316.84
7.4.290.0030.00316.81
7.4.280.0080.00016.67
7.4.270.0000.00716.90
7.4.260.0050.00013.49
7.4.250.0060.00316.73
7.4.240.0030.00316.78
7.4.230.0040.00416.61
7.4.220.0090.00916.98
7.4.210.0040.01116.83
7.4.200.0030.00316.64
7.4.190.0000.00716.73
7.4.160.0060.01016.80
7.4.150.0090.00916.50
7.4.140.0080.01016.83
7.4.130.0060.01116.66
7.4.120.0120.00616.82
7.4.110.0030.01316.76
7.4.100.0110.00616.92
7.4.90.0060.01216.82
7.4.80.0170.00316.75
7.4.70.0060.01216.50
7.4.60.0110.00716.80
7.4.50.0020.00216.82
7.4.40.0030.01416.71
7.4.30.0070.01016.79
7.4.00.0060.00615.37
7.3.330.0030.00313.53
7.3.320.0030.00313.48
7.3.310.0000.00816.61
7.3.300.0070.00016.64
7.3.290.0120.00316.57
7.3.280.0070.01116.53
7.3.270.0140.00317.02
7.3.260.0110.00816.73
7.3.250.0080.01016.81
7.3.240.0130.00316.75
7.3.230.0110.00716.91
7.3.210.0090.00916.68
7.3.200.0060.01219.39
7.3.190.0120.00616.80
7.3.180.0060.01016.47
7.3.170.0030.02516.89
7.3.160.0080.00816.61
7.3.120.0040.01115.07
7.2.330.0070.01716.97
7.2.320.0060.01716.72
7.2.310.0130.01116.88
7.2.300.0060.01116.85
7.2.290.0110.00716.78
7.2.00.0000.01219.85
7.1.100.0030.00918.65
7.1.70.0070.00017.40
7.1.60.0110.01419.40
7.1.50.0030.01717.22
7.1.00.0030.03322.60
7.0.200.0030.00517.04
7.0.140.0070.07322.09
7.0.120.0030.06322.21
7.0.60.0300.05720.02
7.0.50.0100.05717.89
7.0.40.0070.04019.99
7.0.30.0270.06720.09
7.0.20.0200.04320.32
7.0.10.0070.08720.35
7.0.00.0100.03720.08
5.6.280.0000.07720.91
5.6.210.0130.07720.73
5.6.200.0070.05318.21
5.6.190.0070.08720.45
5.6.180.0300.06020.48
5.6.170.0200.06320.50
5.6.160.0030.09020.50
5.6.150.0070.08318.15
5.6.140.0170.07018.14
5.6.130.0030.04018.21
5.6.120.0100.08021.09
5.6.110.0100.04020.97
5.6.100.0070.05021.01
5.6.90.0100.08720.98
5.6.80.0070.05320.55
5.5.350.0230.04020.44
5.5.340.0070.03717.91
5.5.330.0100.08020.32
5.5.320.0430.06720.20
5.5.310.0330.07020.27
5.5.300.0030.08317.93
5.5.290.0070.03718.04
5.5.280.0200.07720.70
5.5.270.0100.08020.77
5.5.260.0130.07320.77
5.5.250.0030.08020.73
5.5.240.3600.03020.28
5.4.450.0030.04319.52
5.4.440.0000.04719.25
5.4.430.0030.08019.47
5.4.420.0030.04019.47
5.4.410.0200.03019.05
5.4.400.0100.06319.17
5.4.390.0130.08318.98
5.4.380.0030.04019.19
5.4.370.0030.03719.08
5.4.360.0030.03719.23
5.4.350.0030.06719.15
5.4.340.0030.07018.92
5.4.320.0030.07719.23
5.4.310.0030.07318.85
5.4.300.0070.05719.14
5.4.290.0030.05019.20
5.4.280.0000.08319.20
5.4.270.0000.04019.23
5.4.260.0000.04019.14
5.4.250.0070.05719.24
5.4.240.0100.03719.11
5.4.230.0030.04719.14
5.4.220.0170.07019.15
5.4.210.0030.04018.85
5.4.200.0000.04719.14
5.4.190.0130.03018.91
5.4.180.0100.03718.84
5.4.170.0070.03719.23
5.4.160.0130.06718.98
5.4.150.0030.04019.22
5.4.140.0000.04016.47
5.4.130.0030.03716.34
5.4.120.0000.04016.40
5.4.110.0030.06316.32
5.4.100.0100.04016.44
5.4.90.0000.04316.48
5.4.80.0030.03716.34
5.4.70.0030.07316.44
5.4.60.0070.07316.31
5.4.50.0100.03016.25
5.4.40.0030.03716.37
5.4.30.0100.03016.38
5.4.20.0000.04016.36
5.4.10.0030.03716.34
5.4.00.0030.03715.87
5.3.290.0070.08014.58
5.3.280.0000.04714.75
5.3.270.0070.03714.57
5.3.260.0070.06714.66
5.3.250.0100.03014.50
5.3.240.0070.03314.65
5.3.230.0030.04014.64
5.3.220.0070.07714.58
5.3.210.0030.05014.73
5.3.200.0070.03714.64
5.3.190.0000.04014.59
5.3.180.0030.03714.63
5.3.170.0030.04314.60
5.3.160.0030.05014.59
5.3.150.0030.04014.74
5.3.140.0000.04014.63
5.3.130.0070.03714.59
5.3.120.0000.04714.48
5.3.110.0030.04014.48
5.3.100.0000.05314.06
5.3.90.0070.05314.17
5.3.80.0000.04013.92
5.3.70.0030.03714.08
5.3.60.0000.04014.04
5.3.50.0030.05314.11
5.3.40.0000.04013.97
5.3.30.0030.03713.99
5.3.20.0200.03013.63
5.3.10.0100.07013.82
5.3.00.0070.07013.64
5.2.170.0030.05011.22
5.2.160.0170.04711.21
5.2.150.0100.02711.21
5.2.140.0030.03311.23
5.2.130.0030.03011.07
5.2.120.0000.03311.29
5.2.110.0030.03011.18
5.2.100.0030.02711.27
5.2.90.0030.02711.17
5.2.80.0030.04011.06
5.2.70.0100.02711.11
5.2.60.0000.03711.02
5.2.50.0070.03011.07
5.2.40.0030.03710.94
5.2.30.0070.06010.96
5.2.20.0070.03710.94
5.2.10.0000.04010.88
5.2.00.0170.02010.66
5.1.60.0030.04310.08
5.1.50.0030.03010.05
5.1.40.0000.0339.91
5.1.30.0030.03010.36
5.1.20.0070.02710.45
5.1.10.0000.02710.09
5.1.00.0070.02310.04
5.0.50.0000.0238.63
5.0.40.0000.0208.40
5.0.30.0000.0338.17
5.0.20.0000.0208.29
5.0.10.0100.0378.24
5.0.00.0000.0478.18
4.4.90.0070.0138.04
4.4.80.0000.0238.05
4.4.70.0030.0208.09
4.4.60.0000.0178.10
4.4.50.0000.0308.10
4.4.40.0000.0338.15
4.4.30.0030.0308.16
4.4.20.0000.0178.17
4.4.10.0000.0178.17
4.4.00.0070.0208.17
4.3.110.0070.0308.17
4.3.100.0000.0178.17
4.3.90.0000.0308.17
4.3.80.0000.0278.17
4.3.70.0030.0278.17
4.3.60.0000.0378.17
4.3.50.0000.0178.17
4.3.40.0000.0608.17
4.3.30.0030.0378.17
4.3.20.0030.0178.17
4.3.10.0000.0178.17
4.3.00.0000.0178.17

preferences:
46.84 ms | 400 KiB | 5 Q