3v4l.org

run code in 500+ PHP versions simultaneously
<?php $e = new Exception(); $type = 'Throwable'; var_dump($e instanceof Throwable); var_dump($e instanceof $type);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eZYqZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $e, !1 = $type
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'Exception'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    4     3        ASSIGN                                                       !1, 'Throwable'
    6     4        INIT_FCALL                                                   'var_dump'
          5        INSTANCEOF                                           ~6      !0, 'Throwable'
          6        SEND_VAL                                                     ~6
          7        DO_ICALL                                                     
    7     8        INIT_FCALL                                                   'var_dump'
          9        FETCH_CLASS                                       0  $8      !1
         10        INSTANCEOF                                           ~9      !0, $8
         11        SEND_VAL                                                     ~9
         12        DO_ICALL                                                     
         13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.93 ms | 3304 KiB | 14 Q