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.0120.00318.56
8.3.50.0150.00622.24
8.3.40.0180.00419.04
8.3.30.0140.00718.96
8.3.20.0040.00418.75
8.3.10.0030.00621.12
8.3.00.0050.00321.90
8.2.180.0130.00916.63
8.2.170.0070.00722.96
8.2.160.0160.00020.43
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0080.00019.79
8.2.110.0030.00620.40
8.2.100.0080.00418.03
8.2.90.0030.00619.21
8.2.80.0040.00418.16
8.2.70.0030.00617.75
8.2.60.0030.00518.05
8.2.50.0080.00018.07
8.2.40.0070.00318.16
8.2.30.0040.00421.18
8.2.20.0050.00317.89
8.2.10.0040.00417.95
8.2.00.0040.00417.82
8.1.280.0150.00325.92
8.1.270.0080.00023.99
8.1.260.0090.00626.35
8.1.250.0080.00028.09
8.1.240.0070.00322.59
8.1.230.0060.00621.02
8.1.220.0050.00318.77
8.1.210.0030.00619.02
8.1.200.0030.00617.60
8.1.190.0040.00417.52
8.1.180.0100.00018.10
8.1.170.0000.00818.75
8.1.160.0040.00419.02
8.1.150.0050.00218.82
8.1.140.0040.00417.74
8.1.130.0030.00317.90
8.1.120.0040.00417.54
8.1.110.0030.00617.62
8.1.100.0040.00417.64
8.1.90.0000.00717.70
8.1.80.0000.00717.57
8.1.70.0000.00717.55
8.1.60.0040.00417.78
8.1.50.0030.00517.59
8.1.40.0030.00617.59
8.1.30.0000.00917.87
8.1.20.0000.00817.84
8.1.10.0000.00717.71
8.1.00.0000.00817.76
8.0.300.0080.00020.10
8.0.290.0040.00416.93
8.0.280.0040.00418.50
8.0.270.0050.00317.23
8.0.260.0050.00216.92
8.0.250.0000.00717.00
8.0.240.0070.00217.15
8.0.230.0080.00017.17
8.0.220.0030.00317.09
8.0.210.0040.00417.11
8.0.200.0030.00517.06
8.0.190.0030.00316.97
8.0.180.0000.00717.03
8.0.170.0080.00317.09
8.0.160.0050.00317.19
8.0.150.0050.00217.03
8.0.140.0050.00217.08
8.0.130.0030.00313.48
8.0.120.0070.00016.98
8.0.110.0050.00317.04
8.0.100.0040.00417.16
8.0.90.0000.00716.88
8.0.80.0110.00416.99
8.0.70.0030.00517.08
8.0.60.0040.00416.97
8.0.50.0050.00317.15
8.0.30.0070.01617.17
8.0.20.0150.00517.55
8.0.10.0040.00417.08
8.0.00.0100.00816.86
7.4.330.0020.00214.93
7.4.320.0000.00616.71
7.4.300.0070.00016.77
7.4.290.0030.00316.85
7.4.280.0000.00716.85
7.4.270.0100.00016.80
7.4.260.0030.00313.53
7.4.250.0000.00716.84
7.4.240.0080.00016.76
7.4.230.0030.00316.97
7.4.220.0140.00616.79
7.4.210.0080.00716.89
7.4.200.0000.00716.58
7.4.190.0000.00716.83
7.4.160.0090.01216.75
7.4.150.0030.01417.40
7.4.140.0070.01217.86
7.4.130.0050.01116.82
7.4.120.0080.00916.71
7.4.110.0120.00616.51
7.4.100.0130.00716.73
7.4.90.0140.00316.87
7.4.80.0110.00719.39
7.4.70.0060.00916.66
7.4.60.0130.01016.79
7.4.50.0030.00616.83
7.4.40.0080.00822.52
7.4.30.0030.02016.80
7.4.00.0060.01215.21
7.3.330.0030.00313.52
7.3.320.0030.00313.36
7.3.310.0070.00016.72
7.3.300.0050.00316.55
7.3.290.0060.01216.55
7.3.280.0060.01116.56
7.3.270.0070.01417.40
7.3.260.0110.00718.24
7.3.250.0180.00416.61
7.3.240.0070.01016.57
7.3.230.0140.00316.68
7.3.210.0100.00716.68
7.3.200.0100.00719.39
7.3.190.0140.00716.81
7.3.180.0030.01316.89
7.3.170.0110.00516.78
7.3.160.0000.01516.63
7.3.120.0110.00715.33
7.3.110.0120.00515.22
7.3.100.0080.00814.87
7.3.90.0020.01215.06
7.3.80.0110.00314.92
7.3.70.0040.01014.93
7.3.60.0030.01114.79
7.3.50.0070.00714.89
7.3.40.0050.00915.06
7.3.30.0010.01014.85
7.3.20.0080.00716.80
7.3.10.0070.00816.79
7.3.00.0050.00816.92
7.2.330.0040.01416.78
7.2.320.0070.01116.94
7.2.310.0070.01116.70
7.2.300.0110.00616.93
7.2.290.0070.01316.96
7.2.250.0070.01315.30
7.2.240.0100.00815.30
7.2.230.0050.01115.34
7.2.220.0070.00915.29
7.2.210.0030.01615.28
7.2.200.0090.00815.16
7.2.190.0070.00715.19
7.2.180.0100.00715.13
7.2.170.0070.00515.23
7.2.130.0030.01616.90
7.2.120.0100.00317.11
7.2.110.0050.01116.82
7.2.100.0070.01416.77
7.2.90.0170.00716.86
7.2.80.0040.01816.84
7.2.70.0090.01516.83
7.2.60.0080.01117.06
7.2.50.0120.01217.02
7.2.40.0180.01516.88
7.2.30.0130.01316.98
7.2.20.0100.00717.14
7.2.10.0180.00716.77
7.2.00.0100.00818.48
7.1.330.0000.01515.89
7.1.320.0070.00915.94
7.1.310.0030.00816.12
7.1.300.0070.00815.86
7.1.290.0080.00915.91
7.1.280.0040.01015.96
7.1.270.0060.00815.73
7.1.260.0040.00816.03
7.1.250.0090.00416.01
7.1.200.0030.00815.91
7.1.100.0060.00618.36
7.1.70.0030.00717.43
7.1.60.0040.01219.40
7.1.50.0070.01117.11
7.1.00.0000.07722.45
7.0.200.0070.00316.79
7.0.140.0030.07321.93
7.0.70.0030.08721.66
7.0.60.0070.08321.77
7.0.50.0100.08722.04
7.0.40.0070.09020.12
7.0.30.0070.08720.18
7.0.20.0100.04320.09
7.0.10.0100.06720.09
7.0.00.0030.09320.07
5.6.280.0070.07321.02
5.6.220.0100.08020.50
5.6.210.0000.05320.60
5.6.200.0130.07321.03
5.6.190.0070.08320.95
5.6.180.0030.09020.96
5.6.170.0070.06321.07
5.6.160.0130.05721.06
5.6.150.0100.08021.09
5.6.140.0170.05021.05
5.6.130.0030.09321.07
5.6.120.0100.08020.89
5.6.110.0130.08321.02
5.6.100.0070.08721.08
5.6.90.0070.08721.05
5.6.80.0130.06720.42
5.6.70.0100.05020.50
5.6.60.0070.05720.42
5.6.50.0000.09020.42
5.6.40.0100.03720.31
5.6.30.0070.08320.42
5.6.20.0100.07320.32
5.6.10.0070.08020.38
5.6.00.0030.08020.49
5.5.360.0030.06320.43
5.5.350.0070.09020.40
5.5.340.0000.08720.89
5.5.330.0130.08020.93
5.5.320.0070.05320.84
5.5.310.0130.08020.79
5.5.300.0100.08020.90
5.5.290.0100.08020.65
5.5.280.0200.07020.85
5.5.270.0030.07020.65
5.5.260.0070.08320.62
5.5.250.0200.07320.59
5.5.240.0070.03720.23
5.5.230.0030.07720.15
5.5.220.0000.06020.03
5.5.210.0100.07020.28
5.5.200.0070.05320.16
5.5.190.0070.07720.15
5.5.180.0000.05320.09
5.5.160.0100.07320.15
5.5.150.0130.07320.26
5.5.140.0100.07020.29
5.5.130.0200.06020.14
5.5.120.0130.07320.19
5.5.110.0030.07720.13
5.5.100.0000.08020.06
5.5.90.0100.07720.04
5.5.80.0030.06720.16
5.5.70.0070.08720.16
5.5.60.0070.08020.02
5.5.50.0130.08020.07
5.5.40.0030.08020.07
5.5.30.0070.07720.06
5.5.20.0030.08020.09
5.5.10.0100.08020.05
5.5.00.0130.07320.06
5.4.450.0070.08319.18
5.4.440.0000.09019.44
5.4.430.0030.08319.45
5.4.420.0130.07319.53
5.4.410.0000.04319.22
5.4.400.0070.07719.15
5.4.390.0000.08719.03
5.4.380.0030.08019.09
5.4.370.0030.07719.18
5.4.360.0030.06719.16
5.4.350.0030.03719.16
5.4.340.0030.07319.18
5.4.320.0170.06719.09
5.4.310.0030.08319.02
5.4.300.0030.08319.20
5.4.290.0030.04318.86
5.4.280.0130.08019.20
5.4.270.0070.08019.12
5.4.260.0130.07319.13
5.4.250.0130.07318.84
5.4.240.0100.07319.04
5.4.230.0030.07719.09
5.4.220.0030.07719.02
5.4.210.0030.08318.87
5.4.200.0070.06318.89
5.4.190.0070.05319.08
5.4.180.0000.05718.93
5.4.170.0070.07719.20
5.4.160.0130.07319.11
5.4.150.0100.06019.14
5.4.140.0130.07016.39
5.4.130.0000.05316.46
5.4.120.0070.07316.46
5.4.110.0030.04016.48
5.4.100.0130.07016.39
5.4.90.0030.07716.39
5.4.80.0030.05316.47
5.4.70.0100.04716.54
5.4.60.0030.07316.34
5.4.50.0100.06316.30
5.4.40.0000.06716.46
5.4.30.0000.05016.41
5.4.20.0100.05316.30
5.4.10.0000.08016.47
5.4.00.0030.08015.85
5.3.290.0000.08314.73
5.3.280.0070.04714.73
5.3.270.0100.07714.59
5.3.260.0030.07714.54
5.3.250.0100.06714.67
5.3.240.0170.06014.65
5.3.230.0030.08314.75
5.3.220.0070.05314.59
5.3.210.0030.04714.64
5.3.200.0070.07314.55
5.3.190.0030.05714.52
5.3.180.0100.07014.69
5.3.170.0000.04314.54
5.3.160.0100.07014.59
5.3.150.0070.05314.60
5.3.140.0100.07014.55
5.3.130.0030.07014.53
5.3.120.0000.06314.68
5.3.110.0070.04714.48
5.3.100.0030.05714.15
5.3.90.0030.07714.09
5.3.80.0100.07014.05
5.3.70.0030.07314.14
5.3.60.0000.07713.93
5.3.50.0100.03714.02
5.3.40.0030.07313.99
5.3.30.0000.08313.82
5.3.20.0000.05313.81
5.3.10.0030.07713.57
5.3.00.0070.06713.68
5.2.170.0100.04312.19
5.2.160.0130.05712.19
5.2.150.0030.05312.19
5.2.140.0070.06712.19
5.2.130.0070.06312.19
5.2.120.0030.06312.19
5.2.110.0030.06012.19
5.2.100.0070.05012.19
5.2.90.0070.06312.19
5.2.80.0000.04312.19
5.2.70.0030.06312.19
5.2.60.0000.07012.19
5.2.50.0170.05312.19
5.2.40.0000.04012.19
5.2.30.0000.03712.19
5.2.20.0030.06012.19
5.2.10.0070.06012.19
5.2.00.0030.06312.19
5.1.60.0030.04712.19
5.1.50.0100.05012.19
5.1.40.0030.04712.19
5.1.30.0070.05712.19
5.1.20.0000.06012.19
5.1.10.0070.04012.19
5.1.00.0030.05012.19
5.0.50.0030.04012.19
5.0.40.0070.04012.19
5.0.30.0030.07012.19
5.0.20.0000.04012.19
5.0.10.0000.04312.19
5.0.00.0000.07012.19
4.4.90.0000.02312.19
4.4.80.0030.03312.19
4.4.70.0030.01312.19
4.4.60.0070.01312.19
4.4.50.0000.03712.19
4.4.40.0070.04712.19
4.4.30.0030.03712.19
4.4.20.0000.03712.19
4.4.10.0030.03312.19
4.4.00.0000.05712.19
4.3.110.0000.04012.19
4.3.100.0000.03712.19
4.3.90.0030.03012.19
4.3.80.0000.05712.19
4.3.70.0000.03012.19
4.3.60.0000.03312.19
4.3.50.0000.02712.19
4.3.40.0000.05312.19
4.3.30.0000.03012.19
4.3.20.0030.02012.19
4.3.10.0000.02012.19
4.3.00.0000.03012.19

preferences:
39.39 ms | 401 KiB | 5 Q