3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = preg_match('/\w+/', '1'); var_dump($test); if ($test) { echo '1'; } else { echo '0'; }

preferences:
23.5 ms | 405 KiB | 5 Q