3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function test()/* : void */ { } } $f = new Foo; $result = $f->test(); dd(isset($result));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KLpqs
function name:  (null)
number of ops:  11
compiled vars:  !0 = $f, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $2      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   14     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0  $5      
          5        ASSIGN                                                   !1, $5
   16     6        INIT_FCALL_BY_NAME                                       'dd'
          7        ISSET_ISEMPTY_CV                                 ~7      !1
          8        SEND_VAL_EX                                              ~7
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function test

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.62 ms | 1392 KiB | 13 Q