3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
10