3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php declare(strict_types = 1); function test(int $test = null) { var_dump($test); } $var = null; test($var);
based on fMbJ6
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
NULL
Output for 5.6.0 - 5.6.30
Warning: Unsupported declare 'strict_types' in /in/Qib5m on line 1 NULL