3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar { function Bar() { echo 'Hello'; } } $f = new Bar; var_dump(is_callable([$f, 'Bar'])); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c09SO
function name:  (null)
number of ops:  12
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   NEW                                              $1      'Foo%5CBar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cvar_dump'
          4        INIT_NS_FCALL_BY_NAME                                    'Foo%5Cis_callable'
          5        INIT_ARRAY                                       ~4      !0
          6        ADD_ARRAY_ELEMENT                                ~4      'Bar'
          7        SEND_VAL_EX                                              ~4
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        DO_FCALL                                      0          
   12    11      > RETURN                                                   1

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

End of function bar

End of class Foo\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.45 ms | 1394 KiB | 17 Q