3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PHPApprentice { private $velocity = ''; public function __construct () { $this->velocity = 'fast!'; } public function getLearningVelocity () { return $this->velocity; } public function setLearningVelocity ( $value ) { $this->velocity = $value; } } $rafa = new PHPApprentice (); $rafa->setLearningVelocity ( 'Ludicrous Speed!!' ); echo $rafa->getLearningVelocity ();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1VJos
function name:  (null)
number of ops:  10
compiled vars:  !0 = $rafa
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'PHPApprentice'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3        INIT_METHOD_CALL                                         !0, 'setLearningVelocity'
          4        SEND_VAL_EX                                              'Ludicrous+Speed%21%21'
          5        DO_FCALL                                      0          
   23     6        INIT_METHOD_CALL                                         !0, 'getLearningVelocity'
          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/1VJos
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN_OBJ                                               'velocity'
          1        OP_DATA                                                  'fast%21'
    9     2      > RETURN                                                   null

End of function __construct

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

End of function getlearningvelocity

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

End of function setlearningvelocity

End of class PHPApprentice.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.37 ms | 1395 KiB | 13 Q