3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $a[(object)null] = 1; } catch (Throwable $e) { print_r($e->getTrace()); } try { file(null); } catch (Throwable $e) { print_r($e->getTrace()); } try { file(); } catch (Throwable $e) { print_r($e->getTrace()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
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 = 20
Branch analysis from position: 20
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 29
Branch analysis from position: 29
Found catch point at position: 23
Branch analysis from position: 23
2 jumps found. (Code = 107) Position 1 = 24, Position 2 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0Pgfo
function name:  (null)
number of ops:  30
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      null
          1        ASSIGN_DIM                                               !0, ~2
          2        OP_DATA                                                  1
          3      > JMP                                                      ->10
          4  E > > CATCH                                       last         'Throwable'
          5    >   INIT_FCALL                                               'print_r'
          6        INIT_METHOD_CALL                                         !1, 'getTrace'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
    4    10    >   INIT_FCALL                                               'file'
         11        SEND_VAL                                                 null
         12        DO_ICALL                                                 
         13      > JMP                                                      ->20
         14  E > > CATCH                                       last         'Throwable'
         15    >   INIT_FCALL                                               'print_r'
         16        INIT_METHOD_CALL                                         !1, 'getTrace'
         17        DO_FCALL                                      0  $7      
         18        SEND_VAR                                                 $7
         19        DO_ICALL                                                 
    5    20    >   INIT_FCALL                                               'file'
         21        DO_ICALL                                                 
         22      > JMP                                                      ->29
         23  E > > CATCH                                       last         'Throwable'
         24    >   INIT_FCALL                                               'print_r'
         25        INIT_METHOD_CALL                                         !1, 'getTrace'
         26        DO_FCALL                                      0  $10     
         27        SEND_VAR                                                 $10
         28        DO_ICALL                                                 
         29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.49 ms | 1400 KiB | 17 Q