3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyword = array('AV女星','色诱','偷拍','走光','露点','全裸','女优','强奸','SM','三级'); $begin = microtime(TRUE); foreach($keyword as $key) { if (strpos('站和主要商业网站偷拍要树立正确办网导', $key) !== false) { echo 'true'; break; } } $end = microtime(TRUE)); echo (($end-$begin)*1000).'ms'; $begin = microtime(TRUE); echo preg_match("/AV女星|色诱|偷拍|走光|露点|全裸|女优|强奸|SM|三级/", '站和主要商业网站偷拍要树立正确办网导'); $end = microtime(TRUE)); echo (($end-$begin)*1000).'ms';
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.24
Parse error: syntax error, unexpected ')' in /in/avhHJ on line 13
Process exited with code 255.

preferences:
191.28 ms | 1395 KiB | 61 Q