3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function display() { var_dump(Form::initPost()); var_dump(Form::getAll()); } } class Form { private static $value = array(); public static function initPost() { foreach($_GET as $key=>$value) self::$value[$key] = $value; } public static function getAll() { return self::$value; } } $f = new Foo; $f->display();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5lsc7
function name:  (null)
number of ops:  6
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   NEW                                              $1      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_METHOD_CALL                                         !0, 'display'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Foo:
Function display:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5lsc7
function name:  display
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_STATIC_METHOD_CALL                                  'Form', 'initPost'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'var_dump'
          6        INIT_STATIC_METHOD_CALL                                  'Form', 'getAll'
          7        DO_FCALL                                      0  $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                                 
    7    10      > RETURN                                                   null

End of function display

End of class Foo.

Class Form:
Function initpost:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/5lsc7
function name:  initPost
number of ops:  10
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_R                      global              ~2      '_GET'
          1      > FE_RESET_R                                       $3      ~2, ->8
          2    > > FE_FETCH_R                                       ~4      $3, !0, ->8
          3    >   ASSIGN                                                   !1, ~4
   16     4        FETCH_STATIC_PROP_W          global              $6      'value'
          5        ASSIGN_DIM                                               $6, !1
          6        OP_DATA                                                  !0
   15     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $3
   17     9      > RETURN                                                   null

End of function initpost

Function getall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5lsc7
function name:  getAll
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'value'
          1      > RETURN                                                   ~0
   21     2*     > RETURN                                                   null

End of function getall

End of class Form.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.74 ms | 1400 KiB | 15 Q