3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // test.php assert_options(ASSERT_ACTIVE, true); $value = '1'; var_dump(assert(is_string($value))); var_dump(assert('is_string($value)'));
Output for 7.2.0
bool(true) Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/L6NvD on line 6 bool(true)
Output for 4.3.0 - 7.1.10
bool(true) bool(true)