3v4l.org

run code in 500+ PHP versions simultaneously
<?php function printRange(int $from, int $to) { for($i=$from; $i<=$to; $i++) echo "$i "; } printRange(1, 48); printRange(114, 118);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/fRMAi
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'printrange'
          1        SEND_VAL                                                     1
          2        SEND_VAL                                                     48
          3        DO_FCALL                                          0          
    9     4        INIT_FCALL                                                   'printrange'
          5        SEND_VAL                                                     114
          6        SEND_VAL                                                     118
          7        DO_FCALL                                          0          
          8      > RETURN                                                       1

Function printrange:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/fRMAi
function name:  printRange
number of ops:  11
compiled vars:  !0 = $from, !1 = $to, !2 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        ASSIGN                                                       !2, !0
          3      > JMP                                                          ->8
    5     4    >   NOP                                                          
          5        FAST_CONCAT                                          ~4      !2, '+'
          6        ECHO                                                         ~4
    4     7        PRE_INC                                                      !2
          8    >   IS_SMALLER_OR_EQUAL                                          !2, !1
          9      > JMPNZ                                                        ~6, ->4
    6    10    > > RETURN                                                       null

End of function printrange

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
154.87 ms | 1603 KiB | 15 Q