3v4l.org

run code in 500+ PHP versions simultaneously
<?php spl_autoload_register(function($class) { var_dump('Autoload: '.$class); return false;}); var_dump(is_a(1, 'Foo')); var_dump(is_a(2, 'Foo', false)); var_dump(is_a(3, 'Foo', true)); var_dump(is_a('a', 'Foo')); var_dump(is_a('b', 'Foo', false)); var_dump(is_a('c', 'Foo', true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hvEVt
function name:  (null)
number of ops:  51
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
    5     4        INIT_FCALL                                                   'var_dump'
          5        INIT_FCALL                                                   'is_a'
          6        SEND_VAL                                                     1
          7        SEND_VAL                                                     'Foo'
          8        DO_ICALL                                             $2      
          9        SEND_VAR                                                     $2
         10        DO_ICALL                                                     
    6    11        INIT_FCALL                                                   'var_dump'
         12        INIT_FCALL                                                   'is_a'
         13        SEND_VAL                                                     2
         14        SEND_VAL                                                     'Foo'
         15        SEND_VAL                                                     <false>
         16        DO_ICALL                                             $4      
         17        SEND_VAR                                                     $4
         18        DO_ICALL                                                     
    7    19        INIT_FCALL                                                   'var_dump'
         20        INIT_FCALL                                                   'is_a'
         21        SEND_VAL                                                     3
         22        SEND_VAL                                                     'Foo'
         23        SEND_VAL                                                     <true>
         24        DO_ICALL                                             $6      
         25        SEND_VAR                                                     $6
         26        DO_ICALL                                                     
    9    27        INIT_FCALL                                                   'var_dump'
         28        INIT_FCALL                                                   'is_a'
         29        SEND_VAL                                                     'a'
         30        SEND_VAL                                                     'Foo'
         31        DO_ICALL                                             $8      
         32        SEND_VAR                                                     $8
         33        DO_ICALL                                                     
   10    34        INIT_FCALL                                                   'var_dump'
         35        INIT_FCALL                                                   'is_a'
         36        SEND_VAL                                                     'b'
         37        SEND_VAL                                                     'Foo'
         38        SEND_VAL                                                     <false>
         39        DO_ICALL                                             $10     
         40        SEND_VAR                                                     $10
         41        DO_ICALL                                                     
   11    42        INIT_FCALL                                                   'var_dump'
         43        INIT_FCALL                                                   'is_a'
         44        SEND_VAL                                                     'c'
         45        SEND_VAL                                                     'Foo'
         46        SEND_VAL                                                     <true>
         47        DO_ICALL                                             $12     
         48        SEND_VAR                                                     $12
         49        DO_ICALL                                                     
         50      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hvEVt
function name:  {closure:/in/hvEVt:3}
number of ops:  7
compiled vars:  !0 = $class
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        INIT_FCALL                                                   'var_dump'
          2        CONCAT                                               ~1      'Autoload%3A+', !0
          3        SEND_VAL                                                     ~1
          4        DO_ICALL                                                     
          5      > RETURN                                                       <false>
          6*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
171.93 ms | 2813 KiB | 16 Q