3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private $correctlySpelt; public function setCorrectlySpelt($value) { $this->correctlySpelt = $value; } } $object = new MyClass(); $object->setCorrectlySpelt('boo'); $object->incorrectlySpelt = 'bob'; $object->setIncorrectlySpelt('test');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlsRY
function name:  (null)
number of ops:  12
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   14     3        INIT_METHOD_CALL                                         !0, 'setCorrectlySpelt'
          4        SEND_VAL_EX                                              'boo'
          5        DO_FCALL                                      0          
   15     6        ASSIGN_OBJ                                               !0, 'incorrectlySpelt'
          7        OP_DATA                                                  'bob'
   16     8        INIT_METHOD_CALL                                         !0, 'setIncorrectlySpelt'
          9        SEND_VAL_EX                                              'test'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class MyClass:
Function setcorrectlyspelt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FlsRY
function name:  setCorrectlySpelt
number of ops:  4
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    9     1        ASSIGN_OBJ                                               'correctlySpelt'
          2        OP_DATA                                                  !0
   10     3      > RETURN                                                   null

End of function setcorrectlyspelt

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.97 ms | 1393 KiB | 13 Q