3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = '<?xml version="1.0" encoding="UTF-8"?> <response response_code="0"> <initial_orders initial_order_total_price="2.3958"> <initial_order article_group_name="Conjunto de prueba 1"> <initial_order_lines> <initial_order_line article_cn6="123456" article_description="Artículo de prueba 1" article_pvl="1" article_initial_order_units="1" article_discount="1"/> <initial_order_line article_cn6="123457" article_description="Artículo de prueba 2" article_pvl="1" article_initial_order_units="1" article_discount="1"/> </initial_order_lines> </initial_order> </initial_orders> </response>'; $bar = simplexml_load_string($foo); $bax = json_encode($bar); $baz = json_decode($bax, true); print_r(count($baz['initial_orders']['initial_order']));
Output for git.master, git.master_jit, rfc.property-hooks
2

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:
58.91 ms | 401 KiB | 8 Q