3v4l.org

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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.46 ms | 1012 KiB | 14 Q