3v4l.org

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

Function %00%7Bclosure%7D%2Fin%2FHL7VG%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HL7VG
function name:  {closure}
number of ops:  11
compiled vars:  !0 = $i, !1 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
    4     2        PRE_INC                                                  !0
    5     3        ECHO                                                     !0
    6     4        IS_SMALLER_OR_EQUAL                                      10, !0
          5      > JMPZ                                                     ~3, ->7
    7     6    > > RETURN                                                   null
    9     7    >   INIT_DYNAMIC_CALL                                        !1
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   10    10      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.23 ms | 1394 KiB | 13 Q