3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = trim(getUserInput()); if( str_split($input) == array(0,0,0,0) || strcmp($input, "0000") == 0 || strcmp($input, "000") == 0 || strcmp($input, "00") == 0 || strcmp($input, "0") == 0 || $input === 0 || preg_match("/^[\d]{1,}$/D", $input) )fail_advanced_1(); if($input == "0000") complete_advanced_1(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 31
Branch analysis from position: 25
2 jumps found. (Code = 47) Position 1 = 32, Position 2 = 38
Branch analysis from position: 32
2 jumps found. (Code = 47) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 47) Position 1 = 42, Position 2 = 47
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 48, Position 2 = 50
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 54
Branch analysis from position: 52
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
Branch analysis from position: 50
Branch analysis from position: 47
Branch analysis from position: 41
Branch analysis from position: 38
Branch analysis from position: 31
Branch analysis from position: 24
Branch analysis from position: 17
filename:       /in/f0SlC
function name:  (null)
number of ops:  55
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'trim'
          1        INIT_FCALL_BY_NAME                                       'getUserInput'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    4     6        INIT_FCALL                                               'str_split'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        IS_EQUAL                                         ~5      $4, <array>
         10      > JMPNZ_EX                                         ~5      ~5, ->17
    5    11    >   INIT_FCALL                                               'strcmp'
         12        SEND_VAR                                                 !0
         13        SEND_VAL                                                 '0000'
         14        DO_ICALL                                         $6      
         15        IS_EQUAL                                         ~7      $6, 0
         16        BOOL                                             ~5      ~7
         17    > > JMPNZ_EX                                         ~5      ~5, ->24
    6    18    >   INIT_FCALL                                               'strcmp'
         19        SEND_VAR                                                 !0
         20        SEND_VAL                                                 '000'
         21        DO_ICALL                                         $8      
         22        IS_EQUAL                                         ~9      $8, 0
         23        BOOL                                             ~5      ~9
         24    > > JMPNZ_EX                                         ~5      ~5, ->31
    7    25    >   INIT_FCALL                                               'strcmp'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 '00'
         28        DO_ICALL                                         $10     
         29        IS_EQUAL                                         ~11     $10, 0
         30        BOOL                                             ~5      ~11
         31    > > JMPNZ_EX                                         ~5      ~5, ->38
    8    32    >   INIT_FCALL                                               'strcmp'
         33        SEND_VAR                                                 !0
         34        SEND_VAL                                                 '0'
         35        DO_ICALL                                         $12     
         36        IS_EQUAL                                         ~13     $12, 0
         37        BOOL                                             ~5      ~13
         38    > > JMPNZ_EX                                         ~5      ~5, ->41
    9    39    >   IS_IDENTICAL                                     ~14     !0, 0
         40        BOOL                                             ~5      ~14
         41    > > JMPNZ_EX                                         ~5      ~5, ->47
   10    42    >   INIT_FCALL                                               'preg_match'
         43        SEND_VAL                                                 '%2F%5E%5B%5Cd%5D%7B1%2C%7D%24%2FD'
         44        SEND_VAR                                                 !0
         45        DO_ICALL                                         $15     
         46        BOOL                                             ~5      $15
         47    > > JMPZ                                                     ~5, ->50
   11    48    >   INIT_FCALL_BY_NAME                                       'fail_advanced_1'
         49        DO_FCALL                                      0          
   14    50    >   IS_EQUAL                                                 !0, '0000'
         51      > JMPZ                                                     ~17, ->54
         52    >   INIT_FCALL_BY_NAME                                       'complete_advanced_1'
         53        DO_FCALL                                      0          
   15    54    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.83 ms | 1400 KiB | 21 Q