3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPApprentice { private $velocity = ''; public function __construct () { } public function getVelocity () { return $this->velocity; } public function setVelocity ( $value ) { $this->velocity = $value; } } $rafa = (new PHPApprentice ())->setVelocity ( 'jj' ); echo $rafa->getVelocity ();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GtEem
function name:  (null)
number of ops:  10
compiled vars:  !0 = $rafa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'PHPApprentice'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $1, 'setVelocity'
          3        SEND_VAL_EX                                              'jj'
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !0, $3
   21     6        INIT_METHOD_CALL                                         !0, 'getVelocity'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

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

End of function __construct

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

End of function getvelocity

Function setvelocity:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GtEem
function name:  setVelocity
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   16     1        ASSIGN_OBJ                                               'velocity'
          2        OP_DATA                                                  !0
   17     3      > RETURN                                                   null

End of function setvelocity

End of class PHPApprentice.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.48 ms | 1395 KiB | 13 Q