3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_google_calendar="https://www.google.com/calendar/embed?showTitle=0&showPrint=0&showTabs=0&showCalendars=0&height=800&wkst=1&hl=pt_BR&bgcolor=%23FFFFFF&src=tprotegetreinamentos%40gmail.com&color=%23BE6D00&ctz=America%2FSao_Paulo"; $url= parse_url($your_google_calendar); $google_domain = $url['scheme'].'://'.$url['host'].dirname($url['path']).'/'; // Load and parse Google's raw calendar $dom = new DOMDocument; $dom->loadHTMLfile($your_google_calendar); // Change Google's CSS file to use absolute URLs (assumes there's only one element) //$css = $dom->getElementsByTagName('link')->item(0); $css = $dom->getElementsByTagName('link'); foreach ($css as $link) { $css_href = $link->getAttribute('href'); if ($css_href) $$link->setAttribute('href', $google_domain . $css_href); } //$css_href = $css->getAttribute('href'); //$css->setAttribute('href', $google_domain . $css_href); // Change Google's JS file to use absolute URLs $scripts = $dom->getElementsByTagName('script'); foreach ($scripts as $script) { $js_src = $script->getAttribute('src'); if ($js_src) $script->setAttribute('src', $google_domain . $js_src); } // Create a link to a new CSS file called custom_calendar.css $element = $dom->createElement('link'); $element->setAttribute('type', 'text/css'); $element->setAttribute('rel', 'stylesheet'); $element->setAttribute('href', 'custom_calendar.css'); // Append this link at the end of the element //DOMNodeList $head = $dom->getElementsByTagName('head'); // $head = $dom->getElementsByTagName('head')->item(0); echo($head); $head->appendChild($element); // Export the HTML //echo $dom->saveHTML(); ?>

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.0130.00718.50
8.3.50.0100.00921.21
8.3.40.0140.00719.04
8.3.30.0040.01119.17
8.3.20.0000.00820.37
8.3.10.0030.00522.22
8.3.00.0000.00822.68
8.2.180.0040.01116.75
8.2.170.0150.00022.96
8.2.160.0100.00319.44
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0090.00019.61
8.2.110.0030.00622.33
8.2.100.0110.00019.82
8.2.90.0050.00319.29
8.2.80.0050.00318.00
8.2.70.0030.00617.75
8.2.60.0040.00418.16
8.2.50.0050.00318.07
8.2.40.0040.00720.01
8.2.30.0040.00418.27
8.2.20.0040.00417.86
8.2.10.0060.00317.82
8.2.00.0040.00417.88
8.1.280.0090.00625.92
8.1.270.0090.00622.48
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.02
8.1.230.0110.00019.25
8.1.220.0030.00517.90
8.1.210.0000.00818.77
8.1.200.0060.00817.25
8.1.190.0000.00817.78
8.1.180.0060.00319.07
8.1.170.0050.00318.91
8.1.160.0040.00422.27
8.1.150.0040.00418.84
8.1.140.0000.00817.64
8.1.130.0000.00818.13
8.1.120.0070.00017.57
8.1.110.0030.00517.64
8.1.100.0050.00217.51
8.1.90.0040.00417.63
8.1.80.0000.00817.63
8.1.70.0070.00017.52
8.1.60.0080.00017.67
8.1.50.0040.00417.63
8.1.40.0050.00317.61
8.1.30.0040.00417.79
8.1.20.0050.00317.82
8.1.10.0080.00017.68
8.1.00.0060.00317.66
8.0.300.0040.00418.77
8.0.290.0070.00017.55
8.0.280.0030.00318.76
8.0.270.0040.00417.37
8.0.260.0000.00817.00
8.0.250.0000.00717.20
8.0.240.0040.00417.08
8.0.230.0030.00317.05
8.0.220.0050.00217.07
8.0.210.0000.00817.16
8.0.200.0030.00317.18
8.0.190.0000.00717.17
8.0.180.0000.00717.22
8.0.170.0050.00317.07
8.0.160.0040.00417.18
8.0.150.0000.00817.13
8.0.140.0040.00417.07
8.0.130.0050.00013.59
8.0.120.0050.00315.30
8.0.110.0030.00515.28
8.0.100.0030.00515.25
8.0.90.0000.00715.39
8.0.80.0060.00715.18
8.0.70.0040.00415.20
8.0.60.0050.00315.26
8.0.50.0040.00415.23
8.0.30.0110.00516.04
8.0.20.0140.00316.13
8.0.10.0090.00215.34
8.0.00.0050.00915.83
7.4.330.0000.00615.16
7.4.320.0000.00716.69
7.4.300.0060.00016.82
7.4.290.0050.00316.74
7.4.280.0080.00316.55
7.4.270.0000.00816.82
7.4.260.0080.00016.84
7.4.250.0040.00415.12
7.4.240.0070.00215.63
7.4.230.0090.00215.12
7.4.220.0070.00615.20
7.4.210.0070.00715.79
7.4.200.0020.00415.10
7.4.190.0020.00415.11
7.4.180.0000.00613.61
7.4.160.0030.00815.23
7.4.150.0080.00515.48
7.4.140.0100.00416.42
7.4.130.0070.00815.68
7.4.120.0070.00715.58
7.4.110.0080.00515.01
7.4.100.0100.00715.10
7.4.90.0070.00615.15
7.4.80.0040.00916.43
7.4.70.0050.00815.07
7.4.60.0060.00815.02
7.4.50.0050.00314.82
7.4.40.0020.01018.08
7.4.30.0090.00515.02
7.4.20.0030.00313.45
7.4.10.0030.00313.50
7.4.00.0060.00514.30
7.3.330.0000.00513.46
7.3.320.0000.00613.23
7.3.310.0060.00214.82
7.3.300.0060.00215.03
7.3.290.0100.01114.96
7.3.280.0090.00615.77
7.3.270.0020.01215.36
7.3.260.0060.00715.13
7.3.250.0080.00515.48
7.3.240.0000.01315.03
7.3.230.0050.00814.88
7.3.220.0030.00613.39
7.3.210.0120.00114.97
7.3.200.0100.00616.42
7.3.190.0070.00914.99
7.3.180.0060.00715.01
7.3.170.0100.00714.85
7.3.160.0100.00315.04
7.3.150.0030.00313.21
7.3.140.0050.00213.33
7.3.130.0000.00513.20
7.3.120.0040.00414.15
7.3.110.0000.00613.31
7.3.100.0060.00313.32
7.3.90.0070.00013.60
7.3.80.0030.00313.17
7.3.70.0070.00013.38
7.3.60.0000.00613.52
7.3.50.0030.00313.49
7.3.40.0030.00313.35
7.3.30.0000.00613.55
7.3.20.0000.00615.25
7.3.10.0030.00315.08
7.3.00.0000.00715.23
7.2.340.0090.00313.31
7.2.330.0070.00815.08
7.2.320.0070.00814.85
7.2.310.0060.01115.06
7.2.300.0100.00515.16
7.2.290.0120.00315.16
7.2.280.0100.00313.39
7.2.270.0120.00013.37
7.2.260.0080.00413.23
7.2.250.0090.00413.31
7.2.240.0100.00313.30
7.2.230.0000.01213.38
7.2.220.0000.01213.34
7.2.210.0120.00013.41
7.2.200.0110.00313.53
7.2.190.0060.00613.52
7.2.180.0120.00013.45
7.2.170.0060.00613.51
7.2.160.0080.00413.54
7.2.150.0090.00415.09
7.2.140.0080.00415.33
7.2.130.0100.00215.28
7.2.120.0100.00215.21
7.2.110.0090.00315.33
7.2.100.0060.00615.29
7.2.90.0130.00015.43
7.2.80.0100.00215.19
7.2.70.0100.00315.38
7.2.60.0080.00516.08
7.2.50.0070.00715.35
7.2.40.0140.00015.29
7.2.30.0090.00515.43
7.2.20.0080.00615.36
7.2.10.0090.00415.41
7.2.00.0060.00817.26
7.1.330.0080.00414.20
7.1.320.0070.00614.25
7.1.310.0040.00814.39
7.1.300.0090.00314.43
7.1.290.0100.00314.36
7.1.280.0100.00414.35
7.1.270.0080.00314.23
7.1.260.0080.00414.36
7.1.250.0120.00314.18
7.1.240.0070.00614.17
7.1.230.0140.00014.41
7.1.220.0040.00814.41
7.1.210.0000.01314.22
7.1.200.0040.00815.16
7.1.190.0100.00314.38
7.1.180.0040.00914.41
7.1.170.0120.00014.40
7.1.160.0090.00314.34
7.1.150.0140.00014.21
7.1.140.0040.00814.29
7.1.130.0080.00514.33
7.1.120.0140.00014.27
7.1.110.0080.00414.17
7.1.100.0070.00616.48
7.1.90.0100.00314.36
7.1.80.0090.00414.24
7.1.70.0090.00415.88
7.1.60.0060.01417.10
7.1.50.0100.00915.86
7.1.40.0080.00414.48
7.1.30.0100.00314.34
7.1.20.0110.00414.35
7.1.10.0130.00014.31
7.1.00.0060.04918.47
7.0.330.0130.00014.07
7.0.320.0100.00314.19
7.0.310.0100.00314.07
7.0.300.0080.00514.28
7.0.290.0130.00014.22
7.0.280.0130.00014.21
7.0.270.0080.00514.23
7.0.260.0080.00414.18
7.0.250.0100.00214.34
7.0.240.0080.00414.30
7.0.230.0130.00014.34
7.0.220.0100.00314.25
7.0.210.0050.00814.27
7.0.200.0070.00515.74
7.0.190.0100.00314.13
7.0.180.0120.00014.35
7.0.170.0070.00514.42
7.0.160.0060.00614.32
7.0.150.0130.00014.29
7.0.140.0100.03718.28
7.0.130.0100.00314.17
7.0.120.0100.00314.34
7.0.110.0120.00014.21
7.0.100.0120.00014.20
7.0.90.0320.04017.37
7.0.80.0070.04717.26
7.0.70.0180.02817.24
7.0.60.0270.02417.28
7.0.50.0290.02817.43
7.0.40.0080.04317.40
7.0.30.0080.02817.34
7.0.20.0070.04217.29
7.0.10.0060.04517.37
7.0.00.0100.02817.34
5.6.400.0120.00012.92
5.6.390.0110.00012.69
5.6.380.0070.00412.89
5.6.370.0120.00012.77
5.6.360.0090.00212.75
5.6.350.0090.00312.84
5.6.340.0000.01112.82
5.6.330.0110.00012.91
5.6.320.0090.00212.95
5.6.310.0080.00412.63
5.6.300.0110.00012.50
5.6.290.0070.00412.65
5.6.280.0090.03617.22
5.6.270.0040.00712.75
5.6.260.0070.00412.89
5.6.250.0090.00212.73
5.6.240.0050.00512.59
5.6.230.0100.03716.89
5.6.220.0070.04116.92
5.6.210.0100.03617.04
5.6.200.0030.04717.18
5.6.190.0110.03917.16
5.6.180.0080.04517.09
5.6.170.0070.03317.09
5.6.160.0120.03817.21
5.6.150.0100.04217.12
5.6.140.0060.04717.10
5.6.130.0040.03917.15
5.6.120.0080.04417.30
5.6.110.0090.02817.11
5.6.100.0090.04217.07
5.6.90.0080.03817.06
5.6.80.0090.03816.78
5.6.70.0120.03916.82
5.6.60.0120.03516.90
5.6.50.0090.04116.72
5.6.40.0050.02816.72
5.6.30.0140.03516.92
5.6.20.0070.03516.80
5.6.10.0090.02216.67
5.6.00.0110.03816.68
5.5.380.0110.00013.04
5.5.370.0050.04516.93
5.5.360.0110.03816.71
5.5.350.0070.04216.82
5.5.340.0140.03317.02
5.5.330.0040.03116.84
5.5.320.0110.04016.91
5.5.310.0050.04416.90
5.5.300.0060.04117.03
5.5.290.0060.04616.94
5.5.280.0070.03117.04
5.5.270.0090.04216.98
5.5.260.0070.04416.84
5.5.250.0050.02416.86
5.5.240.0080.04116.90
5.5.230.0070.03816.74
5.5.220.0130.03416.64
5.5.210.0070.04016.86
5.5.200.0140.03816.62
5.5.190.0090.02316.67
5.5.180.0060.02216.69
5.5.170.0040.00712.79
5.5.160.0050.03216.65
5.5.150.0120.02016.64
5.5.140.0110.03016.56
5.5.130.0130.03916.60
5.5.120.0090.02316.62
5.5.110.0090.03816.61
5.5.100.0080.04316.72
5.5.90.0110.03716.68
5.5.80.0100.03516.64
5.5.70.0070.04216.52
5.5.60.0070.03216.63
5.5.50.0050.04316.51
5.5.40.0060.02816.59
5.5.30.0080.02616.61
5.5.20.0020.03016.54
5.5.10.0090.03616.60
5.5.00.0060.02616.59
5.4.450.0110.04016.22
5.4.440.0070.03516.26
5.4.430.0080.03816.23
5.4.420.0100.03916.12
5.4.410.0020.03516.12
5.4.400.0050.03916.13
5.4.390.0090.01916.12
5.4.380.0120.03516.11
5.4.370.0090.03715.99
5.4.360.0070.02416.18
5.4.350.0050.03816.03
5.4.340.0050.02515.96
5.4.330.0080.00412.89
5.4.320.0070.02415.94
5.4.310.0090.03516.25
5.4.300.0100.03716.17
5.4.290.0050.03516.15
5.4.280.0060.04016.05
5.4.270.0050.03316.02
5.4.260.0100.03916.13
5.4.250.0080.03616.12
5.4.240.0040.03315.91
5.4.230.0090.03816.10
5.4.220.0090.03515.89
5.4.210.0070.02315.96
5.4.200.0090.01816.03
5.4.190.0100.03415.92
5.4.180.0110.03715.99
5.4.170.0100.03716.10
5.4.160.0100.03715.97
5.4.150.0090.03716.13
5.4.140.0050.02714.50
5.4.130.0030.04014.46
5.4.120.0090.02014.58
5.4.110.0090.03614.56
5.4.100.0040.04414.64
5.4.90.0100.03714.64
5.4.80.0070.02314.67
5.4.70.0050.02414.70
5.4.60.0050.03814.51
5.4.50.0060.03814.63
5.4.40.0040.03314.54
5.4.30.0070.03914.70
5.4.20.0080.02214.59
5.4.10.0090.03714.59
5.4.00.0070.04214.14
5.3.290.0090.04013.99
5.3.280.0060.04113.78
5.3.270.0040.04113.85
5.3.260.0120.04013.82
5.3.250.0130.03813.81
5.3.240.0060.04013.96
5.3.230.0130.03513.79
5.3.220.0070.03913.72
5.3.210.0090.02213.83
5.3.200.0080.03813.92
5.3.190.0070.04013.79
5.3.180.0100.03413.92
5.3.170.0070.02813.94
5.3.160.0030.04713.85
5.3.150.0090.03914.01
5.3.140.0090.03813.87
5.3.130.0020.02913.95
5.3.120.0160.03113.90
5.3.110.0070.04213.80
5.3.100.0030.04613.61
5.3.90.0080.02613.55
5.3.80.0120.03513.48
5.3.70.0080.02613.52
5.3.60.0100.03513.52
5.3.50.0090.02513.48
5.3.40.0020.03713.49
5.3.30.0090.02213.53
5.3.20.0070.02013.36
5.3.10.0070.03213.24
5.3.00.0120.03313.31
5.2.170.0030.03112.94
5.2.160.0050.03512.90
5.2.150.0070.02812.91
5.2.140.0060.01712.82
5.2.130.0050.03312.93
5.2.120.0060.03012.85
5.2.110.0070.03412.97
5.2.100.0030.03312.84
5.2.90.0080.03012.87
5.2.80.0090.03012.87
5.2.70.0070.03012.96
5.2.60.0110.02812.87
5.2.50.0060.02712.81
5.2.40.0060.02012.81
5.2.30.0100.02812.86
5.2.20.0050.02812.80
5.2.10.0060.03312.78
5.2.00.0030.03612.72
5.1.60.0020.02512.38
5.1.50.0040.03012.32
5.1.40.0020.01712.52
5.1.30.0070.02912.52
5.1.20.0090.02512.50
5.1.10.0070.02812.44
5.1.00.0090.02512.39
5.0.50.0050.01812.09
5.0.40.0020.02512.09
5.0.30.0070.02712.09
5.0.20.0010.02112.09
5.0.10.0100.01512.09
5.0.00.0030.02912.09
4.4.90.0050.01512.09
4.4.80.0040.01312.09
4.4.70.0040.01812.09
4.4.60.0060.01612.09
4.4.50.0030.01312.09
4.4.40.0050.02512.09
4.4.30.0020.02012.09
4.4.20.0040.01512.09
4.4.10.0020.01812.09
4.4.00.0030.02712.09
4.3.110.0020.01212.09
4.3.100.0020.01812.09
4.3.90.0030.01512.09
4.3.80.0040.02712.09
4.3.70.0020.02012.09
4.3.60.0000.01812.09
4.3.50.0040.01012.09
4.3.40.0030.01812.09
4.3.30.0010.01012.09
4.3.20.0000.01612.09
4.3.10.0030.01812.09
4.3.00.0020.01812.09

preferences:
46.56 ms | 401 KiB | 5 Q