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.40.0110.01119.18
8.3.30.0110.00319.16
8.3.20.0120.00420.21
8.3.10.0090.00621.92
8.3.00.0040.00422.57
8.2.170.0110.00422.96
8.2.160.0090.00621.07
8.2.150.0070.00324.18
8.2.140.0150.00424.66
8.2.130.0040.00426.16
8.2.120.0120.00319.41
8.2.110.0030.00622.27
8.2.100.0080.00418.03
8.2.90.0050.00319.41
8.2.80.0040.00418.04
8.2.70.0040.00417.88
8.2.60.0040.00718.05
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0040.00418.22
8.2.20.0040.00417.79
8.2.10.0040.00417.82
8.2.00.0000.00817.82
8.1.270.0120.00623.79
8.1.260.0040.00426.35
8.1.250.0140.00328.09
8.1.240.0070.00323.99
8.1.230.0000.01119.24
8.1.220.0000.00817.91
8.1.210.0080.00018.77
8.1.200.0050.00517.60
8.1.190.0040.00417.55
8.1.180.0000.00818.10
8.1.170.0030.00918.55
8.1.160.0000.00722.06
8.1.150.0070.00018.83
8.1.140.0040.00417.65
8.1.130.0000.00717.91
8.1.120.0000.00717.57
8.1.110.0080.00017.71
8.1.100.0000.00717.63
8.1.90.0000.00717.62
8.1.80.0020.00517.63
8.1.70.0000.00717.59
8.1.60.0000.00917.74
8.1.50.0000.00917.62
8.1.40.0000.00917.71
8.1.30.0000.00817.88
8.1.20.0030.00517.77
8.1.10.0030.00617.77
8.1.00.0000.00717.59
8.0.300.0030.00518.77
8.0.290.0060.00317.16
8.0.280.0040.00418.39
8.0.270.0030.00317.33
8.0.260.0030.00316.95
8.0.250.0000.00817.06
8.0.240.0000.00717.18
8.0.230.0040.00317.04
8.0.220.0030.00317.03
8.0.210.0040.00416.97
8.0.200.0000.00717.13
8.0.190.0040.00417.19
8.0.180.0070.00017.02
8.0.170.0040.00417.00
8.0.160.0050.00317.09
8.0.150.0040.00417.01
8.0.140.0030.00516.95
8.0.130.0060.00013.60
8.0.120.0030.00516.95
8.0.110.0000.00717.08
8.0.100.0000.00816.96
8.0.90.0080.00017.15
8.0.80.0130.00316.97
8.0.70.0040.00416.88
8.0.60.0070.00017.13
8.0.50.0020.00517.07
8.0.30.0140.01317.24
8.0.20.0140.00617.40
8.0.10.0000.00817.20
8.0.00.0130.00816.83
7.4.330.0020.00215.11
7.4.320.0040.00416.77
7.4.300.0060.00016.86
7.4.290.0000.00816.83
7.4.280.0070.00016.86
7.4.270.0030.00516.75
7.4.260.0070.00016.84
7.4.250.0000.00816.64
7.4.240.0040.00316.79
7.4.230.0050.00216.73
7.4.220.0030.01216.95
7.4.210.0040.01216.84
7.4.200.0070.00016.64
7.4.190.0070.00016.74
7.4.160.0080.00816.65
7.4.150.0070.01017.40
7.4.140.0110.00917.86
7.4.130.0050.01516.65
7.4.120.0130.00716.75
7.4.110.0140.00316.75
7.4.100.0100.00716.87
7.4.90.0140.00316.74
7.4.80.0160.00319.39
7.4.70.0160.00016.91
7.4.60.0100.01016.92
7.4.50.0030.00516.96
7.4.40.0090.00322.77
7.4.30.0060.01616.86
7.4.10.0080.00815.30
7.4.00.0070.00815.39
7.3.330.0000.00513.55
7.3.320.0000.00613.37
7.3.310.0030.00316.41
7.3.300.0040.00416.54
7.3.290.0060.00916.60
7.3.280.0110.00716.57
7.3.270.0150.00317.40
7.3.260.0150.00616.55
7.3.250.0060.01616.58
7.3.240.0080.00816.61
7.3.230.0140.00416.55
7.3.210.0130.00716.92
7.3.200.0040.01519.39
7.3.190.0070.01016.62
7.3.180.0100.00716.75
7.3.170.0060.01016.77
7.3.160.0080.00916.71
7.3.130.0090.00915.21
7.3.120.0080.00714.93
7.3.110.0050.01214.97
7.3.100.0030.01215.24
7.3.90.0040.01315.08
7.3.80.0060.00915.04
7.3.70.0050.00815.20
7.3.60.0020.01215.13
7.3.50.0030.00714.87
7.3.40.0090.00414.96
7.3.30.0030.00815.00
7.3.20.0060.00616.90
7.3.10.0050.01116.70
7.3.00.0030.01016.85
7.2.330.0110.00716.72
7.2.320.0060.01216.72
7.2.310.0100.01316.98
7.2.300.0070.01016.95
7.2.290.0110.00516.97
7.2.260.0120.00615.36
7.2.250.0100.00715.36
7.2.240.0060.01015.21
7.2.230.0150.00315.12
7.2.220.0040.01115.37
7.2.210.0020.01315.26
7.2.200.0030.01215.24
7.2.190.0060.00815.25
7.2.180.0020.01215.27
7.2.170.0100.00615.27
7.2.160.0070.00915.08
7.2.150.0070.00517.15
7.2.140.0030.00917.20
7.2.130.0040.00917.01
7.2.120.0080.00616.93
7.2.110.0110.00517.07
7.2.100.0080.00816.99
7.2.90.0100.00517.24
7.2.80.0080.00817.21
7.2.70.0110.00317.04
7.2.60.0070.00917.18
7.2.50.0020.01217.14
7.2.40.0030.01217.31
7.2.30.0050.01217.11
7.2.20.0030.00817.20
7.2.10.0020.01117.10
7.2.00.0060.00917.84
7.1.330.0050.01015.95
7.1.320.0050.00816.07
7.1.310.0080.00415.82
7.1.300.0070.00815.82
7.1.290.0020.01316.04
7.1.280.0030.00815.80
7.1.270.0050.00816.03
7.1.260.0000.01316.02
7.1.250.0100.00516.07
7.1.240.0040.01116.08
7.1.230.0000.01216.00
7.1.220.0060.01015.86
7.1.210.0030.01115.99
7.1.200.0030.00916.04
7.1.190.0050.00915.87
7.1.180.0050.00715.88
7.1.170.0070.00416.12
7.1.160.0090.00616.07
7.1.150.0050.01015.96
7.1.140.0030.01115.90
7.1.130.0070.00616.01
7.1.120.0060.00816.03
7.1.110.0060.01115.85
7.1.100.0100.01116.61
7.1.90.0090.00215.94
7.1.80.0050.00915.98
7.1.70.0040.00916.32
7.1.60.0100.00917.27
7.1.50.0060.00816.52
7.1.40.0060.01015.99
7.1.30.0050.00616.01
7.1.20.0060.00715.92
7.1.10.0110.00315.88
7.1.00.0010.03918.12
7.0.330.0050.00515.42
7.0.320.0080.00715.58
7.0.310.0050.01015.47
7.0.300.0050.00815.55
7.0.290.0030.01315.56
7.0.280.0080.00615.48
7.0.270.0030.01015.68
7.0.260.0050.01015.41
7.0.250.0050.01215.72
7.0.240.0050.00715.63
7.0.230.0070.00815.54
7.0.220.0090.00515.45
7.0.210.0060.00615.72
7.0.200.0080.00715.97
7.0.190.0100.00315.65
7.0.180.0070.00715.62
7.0.170.0050.01015.56
7.0.160.0040.00915.57
7.0.150.0090.00515.63
7.0.140.0090.02617.72
7.0.130.0030.00815.50
7.0.120.0070.00615.55
7.0.110.0070.00715.31
7.0.100.0140.02917.17
7.0.90.0070.02917.12
7.0.80.0100.02217.12
7.0.70.0080.02817.04
7.0.60.0090.01617.11
7.0.50.0100.03616.99
7.0.40.0020.02515.82
7.0.30.0100.02615.82
7.0.20.0120.02515.69
7.0.10.0040.03415.79
7.0.00.0090.02515.80
5.6.400.0100.00514.76
5.6.390.0060.00714.50
5.6.380.0060.00714.46
5.6.370.0080.00814.79
5.6.360.0050.01014.61
5.6.350.0050.01314.75
5.6.340.0060.01114.39
5.6.330.0080.00914.27
5.6.320.0030.01114.40
5.6.310.0050.01214.63
5.6.300.0060.01014.74
5.6.290.0080.00814.60
5.6.280.0060.02816.75
5.6.270.0020.01214.38
5.6.260.0050.00714.45
5.6.250.0080.03216.49
5.6.240.0090.02816.57
5.6.230.0080.03116.37
5.6.220.0070.01516.71
5.6.210.0050.02016.46
5.6.200.0120.01516.83
5.6.190.0120.02716.69
5.6.180.0080.03216.59
5.6.170.0080.03516.81
5.6.160.0060.03216.62
5.6.150.0090.03216.58
5.6.140.0070.02316.77
5.6.130.0060.02516.68
5.6.120.0110.01916.56
5.6.110.0050.03216.65
5.6.100.0090.02816.59
5.6.90.0060.02616.59
5.6.80.0080.03316.49
5.6.70.0070.03016.51
5.6.60.0070.03116.39
5.6.50.0060.02916.43
5.6.40.0100.03216.28
5.6.30.0060.02616.39
5.6.20.0070.02316.49
5.6.10.0060.01816.33
5.6.00.0060.02616.38
5.5.380.0050.02216.51
5.5.370.0030.03416.44
5.5.360.0080.02416.37
5.5.350.0100.02116.29
5.5.340.0030.03416.60
5.5.330.0090.03016.45
5.5.320.0050.03016.47
5.5.310.0060.03216.40
5.5.300.0070.03116.63
5.5.290.0060.03616.73
5.5.280.0080.02816.53
5.5.270.0050.03216.58
5.5.260.0070.03016.55
5.5.250.0090.02516.54
5.5.240.0100.02616.34
5.5.230.0070.03316.32
5.5.220.0070.03616.31
5.5.210.0040.03116.41
5.5.200.0070.01816.45
5.5.190.0100.02816.28
5.5.180.0110.02616.31
5.5.170.0050.01214.14
5.5.160.0050.02716.34
5.5.150.0010.03716.18
5.5.140.0040.01716.34
5.5.130.0080.03216.27
5.5.120.0090.02816.38
5.5.110.0090.02916.38
5.5.100.0040.03416.30
5.5.90.0060.02916.29
5.5.80.0030.03316.32
5.5.70.0050.03516.21
5.5.60.0070.02916.26
5.5.50.0140.02216.24
5.5.40.0090.02816.25
5.5.30.0070.02616.32
5.5.20.0060.02016.23
5.5.10.0030.02816.22
5.5.00.0090.03116.10
5.4.450.0070.02313.94
5.4.440.0040.03413.82
5.4.430.0060.02813.99
5.4.420.0060.02914.02
5.4.410.0060.03113.88
5.4.400.0070.02913.76
5.4.390.0050.01913.88
5.4.380.0050.01813.92
5.4.370.0090.02814.02
5.4.360.0020.03213.80
5.4.350.0070.02813.83
5.4.340.0020.03313.83
5.4.330.0070.00411.11
5.4.320.0040.01713.93
5.4.310.0050.03013.80
5.4.300.0060.02813.76
5.4.290.0060.02413.80
5.4.280.0050.02113.76
5.4.270.0110.01313.70
5.4.260.0070.01713.77
5.4.250.0090.02213.78
5.4.240.0020.02713.79
5.4.230.0050.01513.79
5.4.220.0070.02613.78
5.4.210.0060.02813.75
5.4.200.0040.03013.63
5.4.190.0040.02813.81
5.4.180.0060.02813.85
5.4.170.0020.03413.73
5.4.160.0050.03013.74
5.4.150.0080.02713.96
5.4.140.0060.03012.78
5.4.130.0050.02513.08
5.4.120.0020.03013.17
5.4.110.0050.02813.10
5.4.100.0050.02513.03
5.4.90.0050.02712.95
5.4.80.0020.02313.01
5.4.70.0080.02412.91
5.4.60.0040.03012.87
5.4.50.0030.02913.01
5.4.40.0040.02012.98
5.4.30.0050.02712.93
5.4.20.0020.01912.92
5.4.10.0080.01613.07
5.4.00.0080.02212.68
5.3.290.0060.02712.13
5.3.280.0020.02512.00
5.3.270.0070.01812.11
5.3.260.0050.02812.14
5.3.250.0100.02312.08
5.3.240.0040.02812.08
5.3.230.0040.03312.08
5.3.220.0060.02912.11
5.3.210.0050.02012.11
5.3.200.0040.01812.04
5.3.190.0070.01812.12
5.3.180.0060.02712.10
5.3.170.0060.02912.04
5.3.160.0090.02712.09
5.3.150.0080.02712.09
5.3.140.0040.03012.13
5.3.130.0070.01512.08
5.3.120.0050.02312.01
5.3.110.0060.02012.05
5.3.100.0050.02911.80
5.3.90.0020.03211.88
5.3.80.0070.02911.87
5.3.70.0070.02711.81
5.3.60.0060.02011.88
5.3.50.0090.01411.82
5.3.40.0110.02511.86
5.3.30.0060.02511.82
5.3.20.0070.01611.78
5.3.10.0040.01511.73
5.3.00.0070.01111.65
5.2.170.0030.03011.21
5.2.160.0030.06311.07
5.2.150.0070.05311.21
5.2.140.0030.05011.15
5.2.130.0070.02711.13
5.2.120.0000.03011.21
5.2.110.0000.03011.23
5.2.100.0070.02311.18
5.2.90.0000.03011.23
5.2.80.0070.03011.04
5.2.70.0000.03711.14
5.2.60.0070.02711.09
5.2.50.0030.02711.15
5.2.40.0030.02711.14
5.2.30.0070.02710.91
5.2.20.0070.02710.93
5.2.10.0000.03010.90
5.2.00.0030.02710.80
5.1.60.0000.02710.07
5.1.50.0000.02710.08
5.1.40.0000.0239.80
5.1.30.0070.02310.30
5.1.20.0030.06010.29
5.1.10.0000.03010.07
5.1.00.0000.03010.08
5.0.50.0130.0408.95
5.0.40.0000.0208.95
5.0.30.0000.0538.95
5.0.20.0000.0208.95
5.0.10.0070.0308.95
5.0.00.0000.0438.95
4.4.90.0000.0178.95
4.4.80.0030.0138.95
4.4.70.0000.0178.95
4.4.60.0030.0138.95
4.4.50.0000.0178.95
4.4.40.0030.0238.95
4.4.30.0030.0338.95
4.4.20.0000.0238.95
4.4.10.0030.0208.95
4.4.00.0030.0478.95
4.3.110.0030.0178.95
4.3.100.0000.0208.95
4.3.90.0000.0178.95
4.3.80.0030.0238.95
4.3.70.0000.0178.95
4.3.60.0070.0108.95
4.3.50.0030.0138.95
4.3.40.0000.0238.95
4.3.30.0000.0178.95
4.3.20.0030.0138.95
4.3.10.0000.0178.95
4.3.00.0030.0138.95

preferences:
50.05 ms | 400 KiB | 5 Q