3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'assert(): Assertion ""Foo" === "bar"" failed in /in/joNsK on line 3'; if (preg_match('~".+"~', $str, $match)) { print_r($match); } assert('\'Foo\' === \'bar\'');

preferences:
31.59 ms | 402 KiB | 5 Q