3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = explode(", ", "¦, '¨, '?, '´, '¸, 'À, 'Á, 'Â, 'Ã, 'Ä, 'Å"); $products = array(); for($i=0; $i < 10; $i++) { $product = array(); $product["pid"] = $chars[$i]; $products[] = array_map("utf8_decode", $product);; // insert product into array } $data = array( 'success' => 1, 'products' => $products ); $json = json_encode($data, JSON_PRETTY_PRINT);; echo $json; var_dump(json_decode($json, true));
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 Deprecated: Function utf8_decode() is deprecated in /in/r6nNK on line 9 NULL

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:
60.01 ms | 402 KiB | 8 Q