3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = 'callback({"country_code":"RU","country_name":"COUNTRY","city":"CITY","postal":null,"latitude":0.0000,"longitude":0.0000,"IPv4":"00.000.00.00","state":" REGION\'"})'; preg_match('/^\w+\((.*)\)$/', $json, $match); if (!$match) die('Malformed JSONP'); $data = json_decode($match[1], true); if (!$data) die ('Malformed JSON'); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
array(8) { ["country_code"]=> string(2) "RU" ["country_name"]=> string(7) "COUNTRY" ["city"]=> string(4) "CITY" ["postal"]=> NULL ["latitude"]=> float(0) ["longitude"]=> float(0) ["IPv4"]=> string(12) "00.000.00.00" ["state"]=> string(8) " REGION'" }

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