3v4l.org

run code in 200+ 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.2.0 - 7.3.0beta1
Deprecated: assert(): Calling assert() with a string argument is deprecated in /in/co7eJ on line 8 Warning: assert(): Assertion "count($params) == 1" failed in /in/co7eJ on line 8 bool(false)
Output for 7.0.1 - 7.1.20
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