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); $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.60.0090.01316.88
8.3.50.0100.00716.98
8.3.40.0070.00719.34
8.3.30.0090.00619.23
8.3.20.0000.00822.23
8.3.10.0040.00423.81
8.3.00.0060.00320.10
8.2.180.0140.00718.66
8.2.170.0150.00322.96
8.2.160.0170.00021.70
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0060.00320.90
8.2.120.0030.00526.35
8.2.110.0040.00419.43
8.2.100.0070.00418.16
8.2.90.0000.00819.65
8.2.80.0040.00418.00
8.2.70.0040.00417.88
8.2.60.0040.00418.41
8.2.50.0030.00518.10
8.2.40.0000.00821.02
8.2.30.0030.00519.59
8.2.20.0040.00418.49
8.2.10.0000.00718.52
8.2.00.0000.00918.52
8.1.280.0180.00325.92
8.1.270.0030.00624.34
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.99
8.1.230.0040.00817.83
8.1.220.0050.00317.91
8.1.210.0000.00818.77
8.1.200.0030.00617.73
8.1.190.0080.00017.60
8.1.180.0040.00418.10
8.1.170.0000.00818.85
8.1.160.0040.00419.23
8.1.150.0040.00422.49
8.1.140.0000.00719.93
8.1.130.0030.00319.34
8.1.120.0050.00217.86
8.1.110.0060.00317.74
8.1.100.0050.00317.69
8.1.90.0030.00517.90
8.1.80.0080.00017.59
8.1.70.0000.00717.71
8.1.60.0060.00618.05
8.1.50.0080.00017.72
8.1.40.0030.00517.95
8.1.30.0080.00017.90
8.1.20.0060.00318.00
8.1.10.0030.00518.04
8.1.00.0050.00317.86
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0000.00718.90
8.0.270.0000.00717.44
8.0.260.0030.00317.24
8.0.250.0000.00717.22
8.0.240.0080.00017.45
8.0.230.0070.00317.19
8.0.220.0030.00617.36
8.0.210.0000.00817.19
8.0.200.0000.00617.25
8.0.190.0080.00417.29
8.0.180.0040.00417.20
8.0.170.0000.00717.36
8.0.160.0070.00017.11
8.0.150.0040.00417.43
8.0.140.0000.00717.23
8.0.130.0000.00913.55
8.0.120.0000.00817.38
8.0.110.0040.00417.30
8.0.100.0050.00217.28
8.0.90.0030.00517.29
8.0.80.0150.00817.39
8.0.70.0050.00217.20
8.0.60.0050.00517.31
8.0.50.0040.00417.23
8.0.30.0070.01317.48
8.0.20.0090.01017.42
8.0.10.0030.00517.50
8.0.00.0090.00917.05
7.4.330.0060.00015.55
7.4.320.0040.00416.95
7.4.300.0030.00316.90
7.4.290.0100.00016.90
7.4.280.0040.00417.02
7.4.270.0070.00016.93
7.4.260.0050.00516.98
7.4.250.0000.00716.74
7.4.240.0040.00416.87
7.4.230.0000.00716.90
7.4.220.0030.01517.00
7.4.210.0100.01016.93
7.4.200.0040.00417.07
7.4.160.0140.00316.97
7.4.150.0040.01317.40
7.4.140.0080.01017.86
7.4.130.0110.01117.00
7.4.120.0110.01016.89
7.4.110.0160.00316.98
7.4.100.0090.01216.96
7.4.90.0100.00716.94
7.4.80.0030.02119.39
7.4.70.0030.01416.88
7.4.60.0120.00916.89
7.4.50.0050.00716.64
7.4.40.0210.03316.89
7.4.30.0140.00716.83
7.4.00.0090.01015.13
7.3.330.0050.00013.48
7.3.320.0060.00013.67
7.3.310.0030.00316.55
7.3.300.0030.00316.65
7.3.290.0110.00816.77
7.3.280.0080.00816.80
7.3.270.0120.01217.40
7.3.260.0110.00816.93
7.3.250.0100.01016.76
7.3.240.0050.01216.86
7.3.230.0090.00816.96
7.3.210.0100.00716.79
7.3.200.0130.00716.81
7.3.190.0120.00916.71
7.3.180.0070.01016.94
7.3.170.0170.00016.77
7.3.160.0000.02016.75
7.3.120.0030.01615.16
7.3.110.0140.00415.11
7.3.100.0070.00714.99
7.3.90.0060.00314.89
7.3.80.0090.00615.04
7.3.70.0060.00914.67
7.3.60.0030.00814.86
7.3.50.0060.00614.91
7.3.40.0030.01015.02
7.3.30.0030.00914.98
7.3.20.0030.00616.98
7.3.10.0060.01016.69
7.3.00.0090.00716.71
7.2.330.0090.00916.88
7.2.320.0120.00616.98
7.2.310.0120.01217.06
7.2.300.0130.00916.94
7.2.290.0070.01017.07
7.2.250.0030.01315.28
7.2.240.0100.01015.49
7.2.230.0070.01115.02
7.2.220.0030.01615.03
7.2.210.0150.00015.02
7.2.200.0040.00915.21
7.2.190.0040.01415.28
7.2.180.0040.01415.19
7.2.170.0070.01015.32
7.2.130.0040.01317.07
7.2.120.0060.00617.02
7.2.110.0080.01216.99
7.2.100.0000.01116.84
7.2.90.0090.01216.98
7.2.80.0110.00716.76
7.2.70.0160.00517.06
7.2.60.0060.00817.13
7.2.50.0130.00916.84
7.2.40.0090.00917.02
7.2.30.0110.00417.15
7.2.20.0040.00816.96
7.2.10.0040.00817.03
7.2.00.0040.01118.27
7.1.330.0070.01015.97
7.1.320.0030.00915.88
7.1.310.0060.00916.04
7.1.300.0030.01016.11
7.1.290.0060.00816.05
7.1.280.0040.00416.26
7.1.270.0040.00416.09
7.1.260.0040.00815.98
7.1.250.0140.00415.87
7.1.200.0030.00915.82
7.1.100.0000.01318.43
7.1.70.0070.00317.32
7.1.60.0870.01333.44
7.1.50.0200.01732.88
7.1.40.0200.02332.83
7.1.30.0430.02032.90
7.1.20.0270.00732.91
7.1.10.0070.00714.90
7.1.00.0030.01015.14
7.0.200.0030.01715.15
7.0.190.1630.01315.16
7.0.180.0070.01014.75
7.0.170.0070.01014.65
7.0.160.0730.01314.57
7.0.150.0070.00714.60
7.0.140.0100.00714.79
7.0.130.1800.00714.85
7.0.120.2470.01314.85
7.0.110.1130.01014.80
7.0.100.1300.01014.86
7.0.90.0070.01014.68
7.0.80.0100.00714.71
7.0.70.0030.01314.75
7.0.60.0000.01714.48
7.0.50.1200.00314.69
7.0.40.0030.01715.01
7.0.30.0130.00714.91
7.0.20.1430.01314.82
7.0.10.1830.01314.77
7.0.00.1030.01314.91

preferences:
60.88 ms | 401 KiB | 5 Q