3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo{ public function bar(){ $checked=''; $captcha = $this->getCaptchaError(); if(!empty($captcha['ratings'])){ foreach ($captcha['ratings'] as $_id){ if($_option->getId()==$_id){ $checked='checked="yes"'; } } } } private function getCaptchaError(){ } } $f = new Foo; $f->bar();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cSie
function name:  (null)
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'bar'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 17
filename:       /in/1cSie
function name:  bar
number of ops:  18
compiled vars:  !0 = $checked, !1 = $captcha, !2 = $_id, !3 = $_option
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, ''
    6     1        INIT_METHOD_CALL                                         'getCaptchaError'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !1, $5
    7     4        ISSET_ISEMPTY_DIM_OBJ                         1  ~7      !1, 'ratings'
          5        BOOL_NOT                                         ~8      ~7
          6      > JMPZ                                                     ~8, ->17
    8     7    >   FETCH_DIM_R                                      ~9      !1, 'ratings'
          8      > FE_RESET_R                                       $10     ~9, ->16
          9    > > FE_FETCH_R                                               $10, !2, ->16
    9    10    >   INIT_METHOD_CALL                                         !3, 'getId'
         11        DO_FCALL                                      0  $11     
         12        IS_EQUAL                                                 !2, $11
         13      > JMPZ                                                     ~12, ->15
   10    14    >   ASSIGN                                                   !0, 'checked%3D%22yes%22'
    8    15    > > JMP                                                      ->9
         16    >   FE_FREE                                                  $10
   14    17    > > RETURN                                                   null

End of function bar

Function getcaptchaerror:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1cSie
function name:  getCaptchaError
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                   null

End of function getcaptchaerror

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.01 ms | 1395 KiB | 13 Q