3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function get( $property ) { if ( 'bla' === $property ) { echo 'Initializing Text->bla' . PHP_EOL; $this->bla = 'Value'; return $this->bla; } } } $test = new Test(); echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->bla . PHP_EOL; echo $test->kaka . PHP_EOL; echo $test->bla . PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fjNO
function name:  (null)
number of ops:  19
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        FETCH_OBJ_R                                      ~4      !0, 'bla'
          4        CONCAT                                           ~5      ~4, '%0A'
          5        ECHO                                                     ~5
   16     6        FETCH_OBJ_R                                      ~6      !0, 'bla'
          7        CONCAT                                           ~7      ~6, '%0A'
          8        ECHO                                                     ~7
   17     9        FETCH_OBJ_R                                      ~8      !0, 'bla'
         10        CONCAT                                           ~9      ~8, '%0A'
         11        ECHO                                                     ~9
   18    12        FETCH_OBJ_R                                      ~10     !0, 'kaka'
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
   19    15        FETCH_OBJ_R                                      ~12     !0, 'bla'
         16        CONCAT                                           ~13     ~12, '%0A'
         17        ECHO                                                     ~13
         18      > RETURN                                                   1

Class Test:
Function get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7fjNO
function name:  get
number of ops:  9
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        IS_IDENTICAL                                             !0, 'bla'
          2      > JMPZ                                                     ~1, ->8
    6     3    >   ECHO                                                     'Initializing+Text-%3Ebla%0A'
    7     4        ASSIGN_OBJ                                               'bla'
          5        OP_DATA                                                  'Value'
    8     6        FETCH_OBJ_R                                      ~3      'bla'
          7      > RETURN                                                   ~3
   10     8    > > RETURN                                                   null

End of function get

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.02 ms | 1395 KiB | 13 Q