3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Blah { public function blahblah() { if (count($this->undefinedProperty) > 0) { print 'good times'; } } } $blah = new Blah(); $blah->blahblah();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0rD1R
function name:  (null)
number of ops:  6
compiled vars:  !0 = $blah
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Blah'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        INIT_METHOD_CALL                                         !0, 'blahblah'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Blah:
Function blahblah:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
filename:       /in/0rD1R
function name:  blahblah
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_OBJ_R                                      ~0      'undefinedProperty'
          1        COUNT                                            ~1      ~0
          2        IS_SMALLER                                               0, ~1
          3      > JMPZ                                                     ~2, ->5
    7     4    >   ECHO                                                     'good+times'
    9     5    > > RETURN                                                   null

End of function blahblah

End of class Blah.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.74 ms | 1393 KiB | 13 Q