3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"test" : "test one \xe0, \x270B"}'; echo var_export(json_validate($json), true); $json = preg_replace_callback( pattern: '/\\\\x([[:xdigit:]]+)/', callback: fn($m) => sprintf('\u%04s', $m[1]), subject: $json, count: $count ); echo "\n$count"; echo "\n" . var_export(json_validate($json), true); echo "\n$json\n"; var_export(json_decode($json));
Output for git.master_jit, git.master, rfc.property-hooks
false 2 true {"test" : "test one \u00e0, \u270B"} (object) array( 'test' => 'test one à, ✋', )

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