3v4l.org

run code in 300+ PHP versions simultaneously
<?php $begin = microtime(TRUE); foreach(range(1, 1000) as $i) { preg_match("/偷拍/", '站和主要商业网站偷拍要树立正确办网导'); } $end = microtime(TRUE); echo (($end-$begin)*1000).'ms ';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/gtYBP
function name:  (null)
number of ops:  25
compiled vars:  !0 = $begin, !1 = $i, !2 = $end
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'range'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 1000
          7        DO_ICALL                                         $5      
          8      > FE_RESET_R                                       $6      $5, ->15
          9    > > FE_FETCH_R                                               $6, !1, ->15
    5    10    >   INIT_FCALL                                               'preg_match'
         11        SEND_VAL                                                 '%2F%E5%81%B7%E6%8B%8D%2F'
         12        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'
         13        DO_ICALL                                                 
    4    14      > JMP                                                      ->9
         15    >   FE_FREE                                                  $6
    7    16        INIT_FCALL                                               'microtime'
         17        SEND_VAL                                                 <true>
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !2, $8
    9    20        SUB                                              ~10     !2, !0
         21        MUL                                              ~11     ~10, 1000
         22        CONCAT                                           ~12     ~11, 'ms++'
         23        ECHO                                                     ~12
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.54 ms | 1395 KiB | 19 Q