3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeObject { } class DifferentObject { } function a(object $a) { } $o = new SomeObject; $d = new DifferentObject; a($o); a($d);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QPNHQ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $o, !1 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $2      'SomeObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   11     3        NEW                                              $5      'DifferentObject'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   14     6        INIT_FCALL                                               'a'
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0          
   15     9        INIT_FCALL                                               'a'
         10        SEND_VAR                                                 !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QPNHQ
function name:  a
number of ops:  2
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function a

Class SomeObject: [no user functions]
Class DifferentObject: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.07 ms | 1389 KiB | 15 Q