3v4l.org

run code in 300+ PHP versions simultaneously
<?php $value = md5('hello'); For($i = 0; $i < 1000000; $i++) { preg_match('/^\d+$/D', $value); } For($i = 0; $i < 1000000; $i++) { preg_match('/^\d+$/D', "$i"); }
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 = 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 15
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 15
Branch analysis from position: 23
Branch analysis from position: 15
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 6
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/KYgDf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $value, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'md5'
          1        SEND_VAL                                                 'hello'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        ASSIGN                                                   !1, 0
          5      > JMP                                                      ->11
    5     6    >   INIT_FCALL                                               'preg_match'
          7        SEND_VAL                                                 '%2F%5E%5Cd%2B%24%2FD'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
    4    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 1000000
         12      > JMPNZ                                                    ~7, ->6
    7    13    >   ASSIGN                                                   !1, 0
         14      > JMP                                                      ->21
    8    15    >   INIT_FCALL                                               'preg_match'
         16        SEND_VAL                                                 '%2F%5E%5Cd%2B%24%2FD'
         17        CAST                                          6  ~9      !1
         18        SEND_VAL                                                 ~9
         19        DO_ICALL                                                 
    7    20        PRE_INC                                                  !1
         21    >   IS_SMALLER                                               !1, 1000000
         22      > JMPNZ                                                    ~12, ->15
    9    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.08 ms | 1395 KiB | 17 Q