3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mydata = <<<XML <?xml version="1.0" encoding="UTF-8" standalone="no"?> <fmresultset xmlns="http://www.filemaker.com/xml/fmresultset" version="1.0"> <resultset count="1" fetch-size="1"> <record mod-id="27" record-id="754"> <field name="a_Constant_c"> <data>1</data> </field> <field name="a_Sch_ID_pk"> <data>100060</data> </field> <field name="a_SchoolHead_pk"> <data>100060_1</data> </field> <field name="b___Data_____________"> <data /> </field> <field name="b_1Name_School_Code_t"> <data>PJA</data> </field> <field name="b_1Name_School_t"> <data>Palmetto</data> </field> <field name="b_1Name_SchoolHead_t"> <data>John Doe</data> </field> <field name="b_Ad_Address1_t"> <data /> </field> <field name="b_Ad_Address2_t"> <data>123 Main St.</data> </field> </record> </resultset> </fmresultset> XML; $xml = simplexml_load_string($mydata); $xml->registerXPathNamespace("fmresultset", "http://www.filemaker.com/xml/fmresultset"); $node = $xml->xpath("//fmresultset:resultset/fmresultset:record/fmresultset:field[@name='b_1Name_School_Code_t']"); echo $node[0]->data;
Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.34, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27, 8.4.1 - 8.4.14, 8.5.0 - 8.5.1
PJA
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.
Output for 8.3.28
/bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.3.28) /bin/php-8.3.28: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.3.28)
Process exited with code 1.

preferences:
173.58 ms | 407 KiB | 5 Q