3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyword = array('AV女星','色诱','偷拍','走光','露点','全裸','女优','强奸','SM','三级'); $begin = microtime(TRUE); if (strpos('站和主要商业网站偷拍要树立正确办网导', '偷拍') !== false) { echo 'true '; } $end = microtime(TRUE); echo (($end-$begin)*1000).'ms '; $begin = microtime(TRUE); echo preg_match("/偷拍/", '站和主要商业网站偷拍要树立正确办网导'); $end = microtime(TRUE); echo (($end-$begin)*1000).'ms ';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/EGJX4
function name:  (null)
number of ops:  38
compiled vars:  !0 = $keyword, !1 = $begin, !2 = $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                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'strpos'
          6        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'
          7        SEND_VAL                                                 '%E5%81%B7%E6%8B%8D'
          8        DO_ICALL                                         $6      
          9        TYPE_CHECK                                  1018          $6
         10      > JMPZ                                                     ~7, ->12
    7    11    >   ECHO                                                     'true++'
   11    12    >   INIT_FCALL                                               'microtime'
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
   13    16        SUB                                              ~10     !2, !1
         17        MUL                                              ~11     ~10, 1000
         18        CONCAT                                           ~12     ~11, 'ms+++'
         19        ECHO                                                     ~12
   16    20        INIT_FCALL                                               'microtime'
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !1, $13
   17    24        INIT_FCALL                                               'preg_match'
         25        SEND_VAL                                                 '%2F%E5%81%B7%E6%8B%8D%2F'
         26        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'
         27        DO_ICALL                                         $15     
         28        ECHO                                                     $15
   18    29        INIT_FCALL                                               'microtime'
         30        SEND_VAL                                                 <true>
         31        DO_ICALL                                         $16     
         32        ASSIGN                                                   !2, $16
   20    33        SUB                                              ~18     !2, !1
         34        MUL                                              ~19     ~18, 1000
         35        CONCAT                                           ~20     ~19, 'ms++'
         36        ECHO                                                     ~20
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.42 ms | 1400 KiB | 19 Q