3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '{ "username":"lon", "event":{ "saved_response":"{\\"parts\\": [{\\"text\\": \\"Passion for teaching means loving your job. Doing with all your heart. Teachers who are passionate can inspire pupils to love learning. Passionate teachers create an effective learning environment and increase learning potential of\\\\nstudents.\\"}]}" }, "event_source":"server" }'; $jarray = json_decode($test, true); $jevent = json_decode( $jarray['event']['saved_response'], true); var_dump($jarray); var_dump($jevent);
Output for git.master, git.master_jit, rfc.property-hooks
array(3) { ["username"]=> string(3) "lon" ["event"]=> array(1) { ["saved_response"]=> string(267) "{"parts": [{"text": "Passion for teaching means loving your job. Doing with all your heart. Teachers who are passionate can inspire pupils to love learning. Passionate teachers create an effective learning environment and increase learning potential of\nstudents."}]}" } ["event_source"]=> string(6) "server" } array(1) { ["parts"]=> array(1) { [0]=> array(1) { ["text"]=> string(241) "Passion for teaching means loving your job. Doing with all your heart. Teachers who are passionate can inspire pupils to love learning. Passionate teachers create an effective learning environment and increase learning potential of students." } } }

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:
30.57 ms | 407 KiB | 5 Q