3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keywords = array('AV女星','色诱','偷拍','走光','露点','全裸','女优','强奸','SM','三级'); $begin = microtime(TRUE); foreach($keywords as $key) { strpos('站和主要商业网站偷拍要树立正确办网导', $key) !== false; } $end = microtime(TRUE); echo (($end-$begin)*1000).'ms '; $begin = microtime(TRUE); 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 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/PaYkB
function name:  (null)
number of ops:  40
compiled vars:  !0 = $keywords, !1 = $begin, !2 = $key, !3 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5      > FE_RESET_R                                       $7      !0, ->14
          6    > > FE_FETCH_R                                               $7, !2, ->14
    5     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  ~9      $8
         12        FREE                                                     ~9
    4    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $7
    7    15        INIT_FCALL                                               'microtime'
         16        SEND_VAL                                                 <true>
         17        DO_ICALL                                         $10     
         18        ASSIGN                                                   !3, $10
    8    19        SUB                                              ~12     !3, !1
         20        MUL                                              ~13     ~12, 1000
         21        CONCAT                                           ~14     ~13, 'ms++'
         22        ECHO                                                     ~14
   10    23        INIT_FCALL                                               'microtime'
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $15     
         26        ASSIGN                                                   !1, $15
   11    27        INIT_FCALL                                               'preg_match'
         28        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'
         29        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'
         30        DO_ICALL                                                 
   12    31        INIT_FCALL                                               'microtime'
         32        SEND_VAL                                                 <true>
         33        DO_ICALL                                         $18     
         34        ASSIGN                                                   !3, $18
   14    35        SUB                                              ~20     !3, !1
         36        MUL                                              ~21     ~20, 1000
         37        CONCAT                                           ~22     ~21, 'ms++'
         38        ECHO                                                     ~22
         39      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1400 KiB | 19 Q