3v4l.org

run code in 300+ 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/XG8B1
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'
    4     1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXG8B1%3A4%240'
    7     2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   10     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                                                 
   11    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                                                 
   12    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                                                 
   14    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                                                 
   15    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                                                 
   16    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

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

End of function %00%7Bclosure%7D%2Fin%2FXG8B1%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.54 ms | 1400 KiB | 19 Q