3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { new Animal(); } catch (\Error $e) { echo $e->getMessage(); } try { (new StdClass())->foo(); } catch (\Error $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 4
Branch analysis from position: 4
2 jumps found. (Code = 107) Position 1 = 5, Position 2 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1mhTv
function name:  (null)
number of ops:  18
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $1      'Animal'
          1        DO_FCALL                                      0          
          2        FREE                                                     $1
          3      > JMP                                                      ->8
    5     4  E > > CATCH                                       last         'Error'
    6     5    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          6        DO_FCALL                                      0  $3      
          7        ECHO                                                     $3
   10     8    >   NEW                                              $4      'StdClass'
          9        DO_FCALL                                      0          
         10        INIT_METHOD_CALL                                         $4, 'foo'
         11        DO_FCALL                                      0          
         12      > JMP                                                      ->17
   11    13  E > > CATCH                                       last         'Error'
   12    14    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         15        DO_FCALL                                      0  $7      
         16        ECHO                                                     $7
   13    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.71 ms | 1385 KiB | 13 Q