3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i <= 17; $i++) { // here $str .= $i . ','; } $str = substr($str, 0, -1); echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 2
Branch analysis from position: 7
Branch analysis from position: 2
filename:       /in/2WPRF
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i, !1 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->5
    5     2    >   CONCAT                                           ~3      !0, '%2C'
          3        ASSIGN_OP                                     8          !1, ~3
    2     4        PRE_INC                                                  !0
          5    >   IS_SMALLER_OR_EQUAL                                      !0, 17
          6      > JMPNZ                                                    ~6, ->2
    7     7    >   INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !1
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 -1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !1, $7
    8    13        ECHO                                                     !1
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.78 ms | 1394 KiB | 15 Q