3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = function($x, $y) { $j = $x + $y; }; for ($i = 0; $i < 10000; $i++) { $func($i, 100); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/qh1eM
function name:  (null)
number of ops:  12
compiled vars:  !0 = $func, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Fqh1eM%3A2%240'
          1        ASSIGN                                                   !0, ~2
    6     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->9
    7     4    >   INIT_DYNAMIC_CALL                                        !0
          5        SEND_VAR_EX                                              !1
          6        SEND_VAL_EX                                              100
          7        DO_FCALL                                      0          
    6     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 10000
         10      > JMPNZ                                                    ~7, ->4
    8    11    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fqh1eM%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qh1eM
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $x, !1 = $y, !2 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        ADD                                              ~3      !0, !1
          3        ASSIGN                                                   !2, ~3
    4     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Fqh1eM%3A2%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.52 ms | 1394 KiB | 13 Q