3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '1/1 [==============================] - 1s 1s/step [ { "image_id": "mahomes1", "mean_score_prediction": 6.3682564571499825 }, { "image_id": "mahomes2", "mean_score_prediction": 6.7501190304756165 }, { "image_id": "mahomes3", "mean_score_prediction": 6.3136263862252235 }, ]'; $string = preg_replace(array('/^[^\v]+/', '/,(\s+\])/'), array('', '$1'), $string); $dict = json_decode($string); print_r($dict);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => stdClass Object ( [image_id] => mahomes1 [mean_score_prediction] => 6.36825645715 ) [1] => stdClass Object ( [image_id] => mahomes2 [mean_score_prediction] => 6.7501190304756 ) [2] => stdClass Object ( [image_id] => mahomes3 [mean_score_prediction] => 6.3136263862252 ) )

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:
20.26 ms | 406 KiB | 5 Q