3v4l.org

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

Class Dummy:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0FucK
function name:  __construct
number of ops:  2
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    6     1      > RETURN                                                   null

End of function __construct

End of class Dummy.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.44 ms | 1393 KiB | 13 Q