3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { spl_autoload_register(); var_dump(class_exists('foo\bar')); echo "Success\n"; } catch (Exception $e) { echo "Caught " . get_class($e) . ": " . $e->getMessage() . "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWtUt
function name:  (null)
number of ops:  20
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DO_ICALL                                                 
    5     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'class_exists'
          4        SEND_VAL                                                 'foo%5Cbar'
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
    6     8        ECHO                                                     'Success%0A'
          9      > JMP                                                      ->19
    7    10  E > > CATCH                                       last         'Exception'
    8    11    >   GET_CLASS                                        ~4      !0
         12        CONCAT                                           ~5      'Caught+', ~4
         13        CONCAT                                           ~6      ~5, '%3A+'
         14        INIT_METHOD_CALL                                         !0, 'getMessage'
         15        DO_FCALL                                      0  $7      
         16        CONCAT                                           ~8      ~6, $7
         17        CONCAT                                           ~9      ~8, '%0A'
         18        ECHO                                                     ~9
    9    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.17 ms | 1399 KiB | 19 Q