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';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 16
Branch analysis from position: 16
filename:       /in/1QHQQ
function name:  (null)
number of ops:  43
compiled vars:  !0 = $keyword, !1 = $begin, !2 = $key, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    6     5      > FE_RESET_R                                       $7      !0, ->16
          6    > > FE_FETCH_R                                               $7, !2, ->16
    7     7    >   INIT_FCALL                                               'strpos'
          8        SEND_VAL                                                 '%E7%AB%99%E5%92%8C%E4%B8%BB%E8%A6%81%E5%95%86%E4%B8%9A%E7%BD%91%E7%AB%99%E5%81%B7%E6%8B%8D%E8%A6%81%E6%A0%91%E7%AB%8B%E6%AD%A3%E7%A1%AE%E5%8A%9E%E7%BD%91%E5%AF%BC'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $8      
         11        TYPE_CHECK                                  1018          $8
         12      > JMPZ                                                     ~9, ->15
    8    13    >   ECHO                                                     'true'
    9    14      > JMP                                                      ->16
    6    15    > > JMP                                                      ->6
         16    >   FE_FREE                                                  $7
   13    17        INIT_FCALL                                               'microtime'
         18        SEND_VAL                                                 <true>
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !3, $10
   15    21        SUB                                              ~12     !3, !1
         22        MUL                                              ~13     ~12, 1000
         23        CONCAT                                           ~14     ~13, 'ms'
         24        ECHO                                                     ~14
   18    25        INIT_FCALL                                               'microtime'
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $15     
         28        ASSIGN                                                   !1, $15
   19    29        INIT_FCALL                                               'preg_match'
         30        SEND_VAL                                                 '%2FAV%E5%A5%B3%E6%98%9F%7C%E8%89%B2%E8%AF%B1%7C%E5%81%B7%E6%8B%8D%7C%E8%B5%B0%E5%85%89%7C%E9%9C%B2%E7%82%B9%7C%E5%85%A8%E8%A3%B8%7C%E5%A5%B3%E4%BC%98%7C%E5%BC%BA%E5%A5%B8%7CSM%7C%E4%B8%89%E7%BA%A7%2F'
         31        SEND_VAL                                                 '%E7%AB%99%E5%92%8C%E4%B8%BB%E8%A6%81%E5%95%86%E4%B8%9A%E7%BD%91%E7%AB%99%E5%81%B7%E6%8B%8D%E8%A6%81%E6%A0%91%E7%AB%8B%E6%AD%A3%E7%A1%AE%E5%8A%9E%E7%BD%91%E5%AF%BC'
         32        DO_ICALL                                         $17     
         33        ECHO                                                     $17
   20    34        INIT_FCALL                                               'microtime'
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $18     
         37        ASSIGN                                                   !3, $18
   22    38        SUB                                              ~20     !3, !1
         39        MUL                                              ~21     ~20, 1000
         40        CONCAT                                           ~22     ~21, 'ms'
         41        ECHO                                                     ~22
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.67 ms | 1400 KiB | 19 Q