3v4l.org

run code in 300+ PHP versions simultaneously
<?php $values = array( 'int' => 42, 'bool' => true, 'float' => 1/3, 'string' => "foobar", 'null' => null, ); foreach ($values as $type => $value) { echo $type, " => "; var_dump(isset($value[2])); }

preferences:
46.52 ms | 402 KiB | 5 Q