3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Reverse { public $input; /** * * @param $data */ public function setInput($data) { $this->input = $data; return $this; } /** * *@return void */ public function get() { return $this->input; } } $data = "This is a test."; $output = (new Reverse) ->setInput($data) ->get(); var_export($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NZs4r
function name:  (null)
number of ops:  13
compiled vars:  !0 = $data, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   ASSIGN                                                   !0, 'This+is+a+test.'
   29     1        NEW                                              $3      'Reverse'
          2        DO_FCALL                                      0          
   30     3        INIT_METHOD_CALL                                         $3, 'setInput'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
   31     6        INIT_METHOD_CALL                                         $5, 'get'
          7        DO_FCALL                                      0  $6      
   29     8        ASSIGN                                                   !1, $6
   33     9        INIT_FCALL                                               'var_export'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Reverse:
Function setinput:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NZs4r
function name:  setInput
number of ops:  6
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ASSIGN_OBJ                                               'input'
          2        OP_DATA                                                  !0
   14     3        FETCH_THIS                                       ~2      
          4      > RETURN                                                   ~2
   15     5*     > RETURN                                                   null

End of function setinput

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NZs4r
function name:  get
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   FETCH_OBJ_R                                      ~0      'input'
          1      > RETURN                                                   ~0
   24     2*     > RETURN                                                   null

End of function get

End of class Reverse.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
236.81 ms | 1000 KiB | 14 Q