3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new ${ (function()use(&$lol){ $lol = "stdClass"; return "lol"; })() }());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2ASG
function name:  (null)
number of ops:  12
compiled vars:  !0 = $lol
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    5     1        DECLARE_LAMBDA_FUNCTION                          ~1      [0]
          2        BIND_LEXICAL                                             ~1, !0
    8     3        INIT_DYNAMIC_CALL                                        ~1
          4        DO_FCALL                                      0  $2      
          5        FETCH_R                      local               ~3      $2
          6        FETCH_CLASS                                   0  $4      ~3
          7        NEW                                              $5      $4
          8        DO_FCALL                                      0          
          9        SEND_VAR                                                 $5
    3    10        DO_ICALL                                                 
   10    11      > 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/L2ASG
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $lol
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        ASSIGN                                                   !0, 'stdClass'
    7     2      > RETURN                                                   'lol'
    8     3*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.23 ms | 997 KiB | 14 Q