3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function ($a, $b) { // echo $a, $b; return function ($c) use ($a, $b) { echo $a, $b, $c; }; })('a', 'b')('c');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NquPF
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNquPF%3A3%240'
    8     1        INIT_DYNAMIC_CALL                                        ~0
          2        SEND_VAL_EX                                              'a'
          3        SEND_VAL_EX                                              'b'
          4        DO_FCALL                                      0  $1      
          5        INIT_DYNAMIC_CALL                                        $1
          6        SEND_VAL_EX                                              'c'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FNquPF%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NquPF
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FNquPF%3A5%241'
          3        BIND_LEXICAL                                             ~2, !0
          4        BIND_LEXICAL                                             ~2, !1
    7     5      > RETURN                                                   ~2
    8     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNquPF%3A3%240

Function %00%7Bclosure%7D%2Fin%2FNquPF%3A5%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NquPF
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $c, !1 = $a, !2 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        BIND_STATIC                                              !2
    6     3        ECHO                                                     !1
          4        ECHO                                                     !2
          5        ECHO                                                     !0
    7     6      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FNquPF%3A5%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.08 ms | 1395 KiB | 13 Q