3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 11111; $i++) { $match = preg_match('/([1-9]\d+|[2-9])\d\d/', $i); if ($i <= 200 && $match) { echo 'error, matched ', $i, PHP_EOL; } else if ($i > 200 && !$match) { echo 'error, did not match ', $i, PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
Branch analysis from position: 2
Branch analysis from position: 15
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 2
Branch analysis from position: 26
Branch analysis from position: 2
Branch analysis from position: 23
Branch analysis from position: 19
Branch analysis from position: 10
filename:       /in/RqR8i
function name:  (null)
number of ops:  27
compiled vars:  !0 = $i, !1 = $match
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->24
    4     2    >   INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F%28%5B1-9%5D%5Cd%2B%7C%5B2-9%5D%29%5Cd%5Cd%2F'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        IS_SMALLER_OR_EQUAL                              ~5      !0, 200
          8      > JMPZ_EX                                          ~5      ~5, ->10
          9    >   BOOL                                             ~5      !1
         10    > > JMPZ                                                     ~5, ->15
    6    11    >   ECHO                                                     'error%2C+matched+'
         12        ECHO                                                     !0
         13        ECHO                                                     '%0A'
         14      > JMP                                                      ->23
    7    15    >   IS_SMALLER                                       ~6      200, !0
         16      > JMPZ_EX                                          ~6      ~6, ->19
         17    >   BOOL_NOT                                         ~7      !1
         18        BOOL                                             ~6      ~7
         19    > > JMPZ                                                     ~6, ->23
    8    20    >   ECHO                                                     'error%2C+did+not+match+'
         21        ECHO                                                     !0
         22        ECHO                                                     '%0A'
    3    23    >   PRE_INC                                                  !0
         24    >   IS_SMALLER                                               !0, 11111
         25      > JMPNZ                                                    ~9, ->2
   10    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.33 ms | 1396 KiB | 15 Q