3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start=time(); for ($i=0;$i<1000000;$i++) $res = preg_match('~\.(?:com|net|biz)\b~', 'apache.com'); $lap=time(); for ($i=0;$i<1000000;$i++) $res = preg_match('~\.(?:biz|net|com)\b~', 'apache.com'); $end=time(); $time1 = $lap - $start; $time2 = $end - $lap; echo $time1."<br />"; echo $time2."<br />"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 18
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 18
Branch analysis from position: 26
Branch analysis from position: 18
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 5
Branch analysis from position: 13
Branch analysis from position: 5
filename:       /in/rSG7d
function name:  (null)
number of ops:  38
compiled vars:  !0 = $start, !1 = $i, !2 = $res, !3 = $lap, !4 = $end, !5 = $time1, !6 = $time2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'time'
          1        DO_ICALL                                         $7      
          2        ASSIGN                                                   !0, $7
    3     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->11
    4     5    >   INIT_FCALL                                               'preg_match'
          6        SEND_VAL                                                 '%7E%5C.%28%3F%3Acom%7Cnet%7Cbiz%29%5Cb%7E'
    5     7        SEND_VAL                                                 'apache.com'
          8        DO_ICALL                                         $10     
    4     9        ASSIGN                                                   !2, $10
    3    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 1000000
         12      > JMPNZ                                                    ~13, ->5
    6    13    >   INIT_FCALL                                               'time'
         14        DO_ICALL                                         $14     
         15        ASSIGN                                                   !3, $14
    7    16        ASSIGN                                                   !1, 0
         17      > JMP                                                      ->24
    8    18    >   INIT_FCALL                                               'preg_match'
         19        SEND_VAL                                                 '%7E%5C.%28%3F%3Abiz%7Cnet%7Ccom%29%5Cb%7E'
    9    20        SEND_VAL                                                 'apache.com'
         21        DO_ICALL                                         $17     
    8    22        ASSIGN                                                   !2, $17
    7    23        PRE_INC                                                  !1
         24    >   IS_SMALLER                                               !1, 1000000
         25      > JMPNZ                                                    ~20, ->18
   10    26    >   INIT_FCALL                                               'time'
         27        DO_ICALL                                         $21     
         28        ASSIGN                                                   !4, $21
   11    29        SUB                                              ~23     !3, !0
         30        ASSIGN                                                   !5, ~23
   12    31        SUB                                              ~25     !4, !3
         32        ASSIGN                                                   !6, ~25
   13    33        CONCAT                                           ~27     !5, '%3Cbr+%2F%3E'
         34        ECHO                                                     ~27
   14    35        CONCAT                                           ~28     !6, '%3Cbr+%2F%3E'
         36        ECHO                                                     ~28
   15    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.36 ms | 1400 KiB | 17 Q