3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function getme(){ return 10; } } $bar= new $foo; var_dump(empty($bar->getme()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TBMdW
function name:  (null)
number of ops:  11
compiled vars:  !0 = $bar, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   FETCH_CLASS                                   0  $2      !1
          1        NEW                                              $3      $2
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    7     4        INIT_FCALL                                               'var_dump'
          5        INIT_METHOD_CALL                                         !0, 'getme'
          6        DO_FCALL                                      0  $6      
          7        BOOL_NOT                                         ~7      $6
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class foo:
Function getme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TBMdW
function name:  getme
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   10
          1*     > RETURN                                                   null

End of function getme

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.83 ms | 1394 KiB | 15 Q