3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class X { } function a(object $x) { var_dump($x); } a(new X()); a("123");
based on Efe3N
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/77RN1
function name:  (null)
number of ops:  11
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   6     1        NOP                                                      
  10     2        INIT_FCALL                                               'a'
         3        NEW                                              $1      :-5
         4        DO_FCALL                                      0          
         5        SEND_VAR                                                 $1
         6        DO_FCALL                                      0          
  12     7        INIT_FCALL                                               'a'
         8        SEND_VAL                                                 '123'
         9        DO_FCALL                                      0          
        10      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/77RN1
function name:  a
number of ops:  5
compiled vars:  !0 = $x
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   RECV                                             !0      
   7     1        INIT_FCALL                                               'var_dump'
         2        SEND_VAR                                                 !0
         3        DO_ICALL                                                 
   8     4      > RETURN                                                   null

End of function a

Class X: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.1.0