3v4l.org

run code in 300+ PHP versions simultaneously
<?php $goal = function($al = null, $go = null) use (&$goal) { if (!isset($go)) $go = 'go'; else $go .= 'o'; if (!isset($al)) return function ($al) use (&$go) { return $goal($al, $go); }; return $go.$al; }; echo $goal()('al');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aYLQH
function name:  (null)
number of ops:  10
compiled vars:  !0 = $goal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaYLQH%3A3%240'
          1        BIND_LEXICAL                                             ~1, !0
          2        ASSIGN                                                   !0, ~1
   10     3        INIT_DYNAMIC_CALL                                        !0
          4        DO_FCALL                                      0  $3      
          5        INIT_DYNAMIC_CALL                                        $3
          6        SEND_VAL_EX                                              'al'
          7        DO_FCALL                                      0  $4      
          8        ECHO                                                     $4
          9      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FaYLQH%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
Branch analysis from position: 15
filename:       /in/aYLQH
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $al, !1 = $go, !2 = $goal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_INIT                                        !0      null
          1        RECV_INIT                                        !1      null
          2        BIND_STATIC                                              !2
    5     3        ISSET_ISEMPTY_CV                                 ~3      !1
          4        BOOL_NOT                                         ~4      ~3
          5      > JMPZ                                                     ~4, ->8
          6    >   ASSIGN                                                   !1, 'go'
          7      > JMP                                                      ->9
          8    >   ASSIGN_OP                                     8          !1, 'o'
    6     9    >   ISSET_ISEMPTY_CV                                 ~7      !0
         10        BOOL_NOT                                         ~8      ~7
         11      > JMPZ                                                     ~8, ->15
         12    >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaYLQH%3A6%241'
         13        BIND_LEXICAL                                             ~9, !1
         14      > RETURN                                                   ~9
    7    15    >   CONCAT                                           ~10     !1, !0
         16      > RETURN                                                   ~10
    8    17*     > RETURN                                                   null

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

Function %00%7Bclosure%7D%2Fin%2FaYLQH%3A6%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aYLQH
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $al, !1 = $go, !2 = $goal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_DYNAMIC_CALL                                        !2
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $3      
          6      > RETURN                                                   $3
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FaYLQH%3A6%241

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.39 ms | 1399 KiB | 13 Q