3v4l.org

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

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.65 ms | 1394 KiB | 13 Q