3v4l.org

run code in 300+ PHP versions simultaneously
<?php $org_array = array( 'hogehoge', 'piyo' => 'piyopiyo', 'fruits' => array( 'apple', 'orange', 'mellon', ), 'city' => array( 'tokyo' => 'meguro', 'osaka' => 'kyobashi', 'hukuoka' => 'hakata', ), 'huga' => array( array('happy', 'bad', 'lucky'), array(100,200,400,800) ), 'game_history' => array( array('name' => 'famicon', 'start' => 1993, 'end'=>2000), array('name' => 'playstation', 'start' => 2000, 'end'=>2006), array('name' => 'wii', 'start' => 2006, 'end'=>2007), ), ); $encode_array = json_encode($org_array); print_r(json_decode($encode_array)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
stdClass Object ( [0] => hogehoge [piyo] => piyopiyo [fruits] => Array ( [0] => apple [1] => orange [2] => mellon ) [city] => stdClass Object ( [tokyo] => meguro [osaka] => kyobashi [hukuoka] => hakata ) [huga] => Array ( [0] => Array ( [0] => happy [1] => bad [2] => lucky ) [1] => Array ( [0] => 100 [1] => 200 [2] => 400 [3] => 800 ) ) [game_history] => Array ( [0] => stdClass Object ( [name] => famicon [start] => 1993 [end] => 2000 ) [1] => stdClass Object ( [name] => playstation [start] => 2000 [end] => 2006 ) [2] => stdClass Object ( [name] => wii [start] => 2006 [end] => 2007 ) ) )

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:
40.87 ms | 404 KiB | 8 Q