3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'assert(): Assertion ""Foo" === "bar"" failed in /in/joNsK on line 3'; if (preg_match('~".+"~', $str, $match)) { print_r($match); } assert('\'Foo\' === \'bar\'');
Output for 4.3.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
Array ( [0] => ""Foo" === "bar"" ) Warning: assert(): Assertion "'Foo' === 'bar'" failed in /in/061Fm on line 7
Output for hhvm-3.10.0
Array ( [0] => ""Foo" === "bar"" )
Output for 4.3.0 - 4.3.1
Array ( [0] => ""Foo" === "bar"" ) Warning: assert() [http://www.php.net/function.assert]: Assertion "'Foo' === 'bar'" failed in /in/061Fm on line 7