3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $sapling = array("Rose" => array("Type" => "Flower", "Life" => 10), "Bell" => array("Type" => "Rock", "Life" => 20)); $name = isset($_GET['test']) ? $_GET['test'] : 'Rose'; echo $sapling[$name]['Life']; ?>
Output for 4.3.0 - 7.2.0
10