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']); }
Output for git.master, git.master_jit, rfc.property-hooks
SimpleXMLElement Object ( [@attributes] => Array ( [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 ) ) SimpleXMLElement Object ( [0] => font-size: 50px; font-family: Vagabond; text-anchor: middle; display: block; )

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
88.29 ms | 403 KiB | 8 Q