3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = "41.24.32.3 : - -"; list ($ip, $results) = explode(" : ", $input); $results = str_replace("-", "-1", $results); $results = explode(" ", $results); $o = json_encode(array("ip" => $ip, "results" => $results)); print("$o\n");
based on 8sUtv
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
{"ip":"41.24.32.3","results":["-1","-1"]}