3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types=1); $thisIsNotAnArray[] = 'foo'; var_dump($thisIsNotAnArray);
based on ipTP2
Output for hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0alpha1
array(1) { [0]=> string(3) "foo" }
Output for 5.6.0 - 5.6.30
Warning: Unsupported declare 'strict_types' in /in/pU28l on line 3 array(1) { [0]=> string(3) "foo" }