3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 27
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 26
Branch analysis from position: 19
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/eXkna
function name:  (null)
number of ops:  29
compiled vars:  !0 = $foo, !1 = $fn, !2 = $callable
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   11     3      > FE_RESET_R                                       $6      <array>, ->27
          4    > > FE_FETCH_R                                               $6, !1, ->27
   12     5    >   INIT_ARRAY                                       ~7      !0
          6        ADD_ARRAY_ELEMENT                                ~7      !1
          7        ASSIGN                                                   !2, ~7
   14     8        INIT_FCALL                                               'method_exists'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $9      
         12      > JMPZ                                                     $9, ->19
   15    13    >   INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%25s%3A%3A%25s%28%29+exists%0A'
         15        GET_CLASS                                        ~10     !0
         16        SEND_VAL                                                 ~10
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   18    19    >   INIT_FCALL                                               'method_exists'
         20        SEND_VAR                                                 !0
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $12     
         23      > JMPZ                                                     $12, ->26
   19    24    >   INIT_DYNAMIC_CALL                                        !2
         25        DO_FCALL                                      0          
   11    26    > > JMP                                                      ->4
         27    >   FE_FREE                                                  $6
   21    28      > RETURN                                                   1

Class Foo:
Function publicfn:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXkna
function name:  publicFN
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     '%0Apublic+call%0A'
          1      > RETURN                                                   null

End of function publicfn

Function protectedfn:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXkna
function name:  protectedFN
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '%0Aprotected+call%0A'
          1      > RETURN                                                   null

End of function protectedfn

Function privatefn:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eXkna
function name:  privateFN
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     '%0Aprivate+call%0A'
          1      > RETURN                                                   null

End of function privatefn

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.32 ms | 973 KiB | 15 Q