3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = function($p) { $this->$p = new Stdclass; }; $p->call($e = new Exception, 'trace'); throw $e;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/fJj22
function name:  (null)
number of ops:  11
compiled vars:  !0 = $p, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          1        ASSIGN                                                   !0, ~2
    6     2        INIT_METHOD_CALL                                         !0, 'call'
          3        NEW                                              $4      'Exception'
          4        DO_FCALL                                      0          
          5        ASSIGN                                           ~6      !1, $4
          6        SEND_VAL_EX                                              ~6
          7        SEND_VAL_EX                                              'trace'
          8        DO_FCALL                                      0          
    8     9      > THROW                                         0          !1
         10*     > 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/fJj22
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        FETCH_THIS                                       $1      
          2        NEW                                              $3      'Stdclass'
          3        DO_FCALL                                      0          
          4        ASSIGN_OBJ                                               $1, !0
          5        OP_DATA                                                  $3
          6      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.97 ms | 994 KiB | 13 Q