3v4l.org

run code in 500+ PHP versions simultaneously
<?php $crasher = function (Exception $ex) { $ex->trace = new StdClass; }; $ex = new Exception(); $crasher = Closure::bind($crasher, null, $ex); $crasher($ex); throw $ex;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/hlFS4
function name:  (null)
number of ops:  16
compiled vars:  !0 = $crasher, !1 = $ex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          1        ASSIGN                                                       !0, ~2
    7     2        NEW                                                  $4      'Exception'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !1, $4
    8     5        INIT_STATIC_METHOD_CALL                                      'Closure', 'bind'
          6        SEND_VAR                                                     !0
          7        SEND_VAL                                                     null
          8        SEND_VAR                                                     !1
          9        DO_FCALL                                          0  $7      
         10        ASSIGN                                                       !0, $7
   10    11        INIT_DYNAMIC_CALL                                            !0
         12        SEND_VAR_EX                                                  !1
         13        DO_FCALL                                          0          
   11    14      > THROW                                             0          !1
         15*     > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hlFS4
function name:  {closure:/in/hlFS4:3}
number of ops:  6
compiled vars:  !0 = $ex
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        NEW                                                  $2      'StdClass'
          2        DO_FCALL                                          0          
          3        ASSIGN_OBJ                                                   !0, 'trace'
          4        OP_DATA                                                      $2
    5     5      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
208.49 ms | 2684 KiB | 13 Q