3v4l.org

run code in 500+ PHP versions simultaneously
<?php $greet = function($name) use (&$greet) { printf("Hello %s\r\n", $name); if($name != 'PHP') { $greet('PHP'); } }; $greet('World');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vUhIW
function name:  (null)
number of ops:  7
compiled vars:  !0 = $greet
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~1      [0]
          1        BIND_LEXICAL                                                 ~1, !0
          2        ASSIGN                                                       !0, ~1
   12     3        INIT_DYNAMIC_CALL                                            !0
          4        SEND_VAL_EX                                                  'World'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/vUhIW
function name:  {closure:/in/vUhIW:3}
number of ops:  12
compiled vars:  !0 = $name, !1 = $greet
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
    5     2        INIT_FCALL                                                   'printf'
          3        SEND_VAL                                                     'Hello+%25s%0D%0A'
          4        SEND_VAR                                                     !0
          5        DO_ICALL                                                     
    6     6        IS_NOT_EQUAL                                                 !0, 'PHP'
          7      > JMPZ                                                         ~3, ->11
    8     8    >   INIT_DYNAMIC_CALL                                            !1
          9        SEND_VAL_EX                                                  'PHP'
         10        DO_FCALL                                          0          
   10    11    > > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.11 ms | 1984 KiB | 14 Q