3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" pw-version="3" id="a5pzw2017004476-p1" width="523.92" height="743.4" viewBox="10.620000000000001 10.620000000000001 523.92 743.4" preserveAspectRatio="xMaxYMax"><desc>Created with Snap</desc><defs></defs><image xlink:href="/pe/temp/39599/a5pzw2017004476/images/p1bg_fb.png" preserveAspectRatio="none" x="0" y="0" width="545.16" height="764.64" id="p1bg"></image><text x="293.671875" y="167" old_offsety="118" offsety="118" ox="293.671875" oy="167" id="text001" width="201" height="140" editable="no" default-font-size="50" min-font-size="10pt" line-spacing="1" fill="#000000" font-color="#000000" style="font-size: 50px; font-family: Vagabond; text-anchor: middle; display: none;" transform="matrix(1,0,0,1,0,0)" orig-text="testing" justify="no" vertical-align="middle" pdfonly="yes"></text><g id="text001-Group" style="display: none;"><text x="393.5" y="167" id="text001-001" font-color="#000000" fill="#000000" stroke="none" style="font-size: 50px; font-family: Vagabond; text-anchor: middle; stroke-width: 1px; opacity: 1;" dy="39.5">testing</text></g><rect x="293.671875" y="118" width="201" height="140" id="text001-MoveTextSurface" fill="rgba(0,0,0,0)" style="fill-opacity: 0; stroke-width: 2; stroke-dasharray: 0, 0;" transform="matrix(1,0,0,1,0,0)"></rect><rect x="0" y="0" width="545" height="764" id="gotoEditModeLayer" fill="rgba(0,0,0,0)" remove="yes"></rect></svg> XML ); $xml->registerXPathNamespace('svg', 'http://www.w3.org/2000/svg'); $result = $xml->xpath( "//*[@pdfonly='yes']" ); foreach ( $result as $node ) { $attribs = $node->attributes(); print_r($attribs['style']); $attribs['style'] = str_replace("display: none;","display: block;",$attribs['style']); print_r($attribs['style']); }

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.70.0060.01617.00
8.3.60.0140.00416.75
8.3.50.0130.00616.73
8.3.40.0140.00419.34
8.3.30.0160.00019.13
8.3.20.0090.00022.01
8.3.10.0060.00324.02
8.3.00.0080.00018.50
8.2.180.0110.00416.75
8.2.170.0150.00322.96
8.2.160.0030.01021.75
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00420.91
8.2.120.0060.00326.35
8.2.110.0000.00919.56
8.2.100.0090.00318.16
8.2.90.0000.00819.59
8.2.80.0080.00018.00
8.2.70.0060.00317.88
8.2.60.0040.00418.41
8.2.50.0030.00618.10
8.2.40.0080.00020.97
8.2.30.0030.00619.60
8.2.20.0000.00818.47
8.2.10.0040.00418.36
8.2.00.0040.00418.45
8.1.280.0140.00325.92
8.1.270.0060.00322.55
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.00
8.1.230.0120.00017.77
8.1.220.0050.00317.89
8.1.210.0030.00618.77
8.1.200.0030.00617.73
8.1.190.0030.00517.60
8.1.180.0040.00418.10
8.1.170.0050.00318.88
8.1.160.0000.00719.19
8.1.150.0050.00322.49
8.1.140.0040.00419.88
8.1.130.0000.00719.24
8.1.120.0040.00417.72
8.1.110.0030.00617.89
8.1.100.0080.00017.86
8.1.90.0000.00717.83
8.1.80.0060.00317.87
8.1.70.0000.00717.65
8.1.60.0000.00917.81
8.1.50.0090.00017.95
8.1.40.0000.00817.94
8.1.30.0030.00517.79
8.1.20.0040.00418.05
8.1.10.0030.00517.80
8.1.00.0040.00417.79
8.0.300.0040.00418.92
8.0.290.0040.00417.25
8.0.280.0000.00718.75
8.0.270.0070.00017.53
8.0.260.0000.00817.32
8.0.250.0000.00717.20
8.0.240.0040.00417.25
8.0.230.0050.00317.23
8.0.220.0000.00717.39
8.0.210.0070.00017.23
8.0.200.0030.00317.41
8.0.190.0040.00817.41
8.0.180.0030.00517.32
8.0.170.0050.00317.38
8.0.160.0020.00517.46
8.0.150.0070.00017.43
8.0.140.0080.00017.32
8.0.130.0040.00413.70
8.0.120.0040.00417.36
8.0.110.0000.00717.17
8.0.100.0040.00417.23
8.0.90.0000.00717.18
8.0.80.0030.01617.44
8.0.70.0070.00017.38
8.0.60.0030.00517.27
8.0.50.0040.00417.31
8.0.30.0080.01017.46
8.0.20.0110.00817.46
8.0.10.0000.00717.30
8.0.00.0090.00917.05
7.4.330.0040.00415.55
7.4.320.0070.00016.87
7.4.300.0040.00416.85
7.4.290.0040.00416.72
7.4.280.0040.00416.93
7.4.270.0030.00316.81
7.4.260.0080.00016.99
7.4.250.0000.00716.85
7.4.240.0070.00016.89
7.4.230.0030.00316.73
7.4.220.0090.00916.98
7.4.210.0080.00916.99
7.4.200.0030.00316.82
7.4.160.0090.00816.92
7.4.150.0100.00717.40
7.4.140.0120.00917.86
7.4.130.0170.00716.99
7.4.120.0170.00516.93
7.4.110.0060.01216.90
7.4.100.0190.00317.10
7.4.90.0150.00616.72
7.4.80.0090.00919.39
7.4.70.0090.00816.85
7.4.60.0070.01116.98
7.4.50.0040.00816.90
7.4.40.0080.00916.98
7.4.30.0170.00016.97
7.4.00.0040.01115.00
7.3.330.0050.00013.66
7.3.320.0030.00313.68
7.3.310.0030.00616.66
7.3.300.0030.00316.81
7.3.290.0090.00616.78
7.3.280.0090.00716.72
7.3.270.0130.00617.40
7.3.260.0130.00516.81
7.3.250.0120.00516.88
7.3.240.0060.01116.90
7.3.230.0060.01216.64
7.3.210.0100.00716.65
7.3.200.0030.01316.93
7.3.190.0000.02016.67
7.3.180.0110.00616.78
7.3.170.0070.01017.09
7.3.160.0040.01216.92
7.2.330.0150.00416.92
7.2.320.0070.01117.13
7.2.310.0120.00417.09
7.2.300.0090.01417.14
7.2.290.0060.01017.16
7.2.60.0030.00917.06
7.1.200.0070.00715.85
7.1.70.0000.01117.50
7.1.60.0330.01733.45
7.1.50.0200.01733.06
7.1.40.0200.01732.69
7.1.30.0170.02032.70
7.1.20.2170.01332.82
7.1.10.0400.01014.97
7.1.00.2170.01315.17
7.0.200.0100.00715.25
7.0.190.0070.01314.86
7.0.180.1770.01714.55
7.0.170.2130.01014.66
7.0.160.2170.01314.81
7.0.150.1330.01314.69
7.0.140.2430.00714.72
7.0.130.0270.01314.92
7.0.120.2070.01014.96
7.0.110.2800.01714.71
7.0.100.3000.00714.66
7.0.90.0030.01714.84
7.0.80.0130.00714.79
7.0.70.2700.01714.72
7.0.60.2630.00714.75
7.0.50.0070.01314.71
7.0.40.2930.01014.91
7.0.30.2370.01014.82
7.0.20.0070.01014.85
7.0.10.0170.01314.82
7.0.00.3000.00714.81

preferences:
55.7 ms | 400 KiB | 5 Q