3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { throw new Exception(); } } try { $a = array( 'a' => 'aa', 'b' => array( 'c' => Foo::bar(), ), ); } catch (Exception $e) { echo $e, PHP_EOL; }
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 = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oVUhD
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_ARRAY                                       ~2      'aa', 'a'
   11     1        INIT_STATIC_METHOD_CALL                                  'Foo', 'bar'
          2        DO_FCALL                                      0  $3      
          3        INIT_ARRAY                                       ~4      $3, 'c'
          4        ADD_ARRAY_ELEMENT                                ~2      ~4, 'b'
    8     5        ASSIGN                                                   !0, ~2
          6      > JMP                                                      ->10
   14     7  E > > CATCH                                       last         'Exception'
   15     8    >   ECHO                                                     !1
          9        ECHO                                                     '%0A'
   16    10    > > RETURN                                                   1

Class Foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/oVUhD
function name:  bar
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $0      'Exception'
          1        DO_FCALL                                      0          
          2      > THROW                                         0          $0
    5     3*     > RETURN                                                   null

End of function bar

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.56 ms | 939 KiB | 14 Q