3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $params = array(); assert_options(ASSERT_ACTIVE, 1); $myString = array( 'foo' => 'myStsring' ); $test = assert('count($params) == 1'); var_dump($test);
Output for 7.0.1 - 7.1.0
Warning: assert(): Assertion "count($params) == 1" failed in /in/co7eJ on line 8 bool(false)
Output for 4.3.2 - 7.0.0
Warning: assert(): Assertion "count($params) == 1" failed in /in/co7eJ on line 8 NULL
Output for 4.3.0 - 4.3.1
Warning: assert() [http://www.php.net/function.assert]: Assertion "count($params) == 1" failed in /in/co7eJ on line 8 NULL