3v4l.org

run code in 300+ PHP versions simultaneously
<?php $superheroes = array( "spider-man" => array( "name" => "Peter Parker", "email" => "peterparker@mail.com", ), "super-man" => array( "name" => "Clark Kent", "email" => "clarkkent@mail.com", ), "iron-man" => array( "name" => "Harry Potter", "email" => "harrypotter@mail.com", ) ); print_r($superheroes); print_r($superheroes[spider-man]);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [spider-man] => Array ( [name] => Peter Parker [email] => peterparker@mail.com ) [super-man] => Array ( [name] => Clark Kent [email] => clarkkent@mail.com ) [iron-man] => Array ( [name] => Harry Potter [email] => harrypotter@mail.com ) ) Fatal error: Uncaught Error: Undefined constant "spider" in /in/k9NWB:17 Stack trace: #0 {main} thrown in /in/k9NWB on line 17
Process exited with code 255.

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:
52.79 ms | 402 KiB | 8 Q