3v4l.org

run code in 300+ PHP versions simultaneously
<?php function action($i){ echo ""; } $loops= 100000; $test = Array(); $test['define']=false; $test['var']=true; if($test['define']){ define('DEBUG' , true); for($i=0; $i<$loops; $i++){ if(DEBUG){ action($i); } if(!DEBUG){ action($i); } } } if($test['var']){ $DEBUG = true; for($i=0; $i<$loops; $i++){ if($DEBUG){ action($i); } if(!$DEBUG){ action($i); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 28
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 14
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 45
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 33
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 37
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 42
Branch analysis from position: 39
2 jumps found. (Code = 44) Position 1 = 45, Position 2 = 33
Branch analysis from position: 45
Branch analysis from position: 33
Branch analysis from position: 42
Branch analysis from position: 37
Branch analysis from position: 45
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 19
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 25
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 14
Branch analysis from position: 28
Branch analysis from position: 14
Branch analysis from position: 25
Branch analysis from position: 19
Branch analysis from position: 28
filename:       /in/n5ooH
function name:  (null)
number of ops:  46
compiled vars:  !0 = $loops, !1 = $test, !2 = $i, !3 = $DEBUG
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, 100000
   13     1        ASSIGN                                                   !1, <array>
          2        ASSIGN_DIM                                               !1, 'define'
          3        OP_DATA                                                  <false>
          4        ASSIGN_DIM                                               !1, 'var'
          5        OP_DATA                                                  <true>
   15     6        FETCH_DIM_R                                      ~8      !1, 'define'
          7      > JMPZ                                                     ~8, ->28
   16     8    >   INIT_FCALL                                               'define'
          9        SEND_VAL                                                 'DEBUG'
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                                 
   17    12        ASSIGN                                                   !2, 0
         13      > JMP                                                      ->26
   18    14    >   FETCH_CONSTANT                                   ~11     'DEBUG'
         15      > JMPZ                                                     ~11, ->19
         16    >   INIT_FCALL                                               'action'
         17        SEND_VAR                                                 !2
         18        DO_FCALL                                      0          
   19    19    >   FETCH_CONSTANT                                   ~13     'DEBUG'
         20        BOOL_NOT                                         ~14     ~13
         21      > JMPZ                                                     ~14, ->25
         22    >   INIT_FCALL                                               'action'
         23        SEND_VAR                                                 !2
         24        DO_FCALL                                      0          
   17    25    >   PRE_INC                                                  !2
         26    >   IS_SMALLER                                               !2, !0
         27      > JMPNZ                                                    ~17, ->14
   24    28    >   FETCH_DIM_R                                      ~18     !1, 'var'
         29      > JMPZ                                                     ~18, ->45
   25    30    >   ASSIGN                                                   !3, <true>
   26    31        ASSIGN                                                   !2, 0
         32      > JMP                                                      ->43
   27    33    > > JMPZ                                                     !3, ->37
         34    >   INIT_FCALL                                               'action'
         35        SEND_VAR                                                 !2
         36        DO_FCALL                                      0          
   28    37    >   BOOL_NOT                                         ~22     !3
         38      > JMPZ                                                     ~22, ->42
         39    >   INIT_FCALL                                               'action'
         40        SEND_VAR                                                 !2
         41        DO_FCALL                                      0          
   26    42    >   PRE_INC                                                  !2
         43    >   IS_SMALLER                                               !2, !0
         44      > JMPNZ                                                    ~25, ->33
   30    45    > > RETURN                                                   1

Function action:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/n5ooH
function name:  action
number of ops:  3
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        ECHO                                                     ''
    9     2      > RETURN                                                   null

End of function action

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.45 ms | 1403 KiB | 19 Q