3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $booleanWert; public function setBooleanWert(bool $booleanWert) { $this->booleanWert = $booleanWert; } public function getBooleanWert() { return $this->booleanWert; } } $t = new Test(); $t->setBooleanWert(True); echo($t->getBooleanWert());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KH4f4
function name:  (null)
number of ops:  10
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'setBooleanWert'
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0          
   19     6        INIT_METHOD_CALL                                         !0, 'getBooleanWert'
          7        DO_FCALL                                      0  $5      
          8        ECHO                                                     $5
          9      > RETURN                                                   1

Class Test:
Function setbooleanwert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KH4f4
function name:  setBooleanWert
number of ops:  4
compiled vars:  !0 = $booleanWert
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        ASSIGN_OBJ                                               'booleanWert'
          2        OP_DATA                                                  !0
    8     3      > RETURN                                                   null

End of function setbooleanwert

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

End of function getbooleanwert

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.07 ms | 939 KiB | 14 Q