3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( strpos('.example.com.hacked', '.example.com'), preg_match('/\.example.com$/', 'www.example.com'), preg_match('/\.example.com$/', 'www.example.com.hacked'), );

preferences:
34.22 ms | 402 KiB | 5 Q