3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = ""; for ($t=0; $t<1000; $t++) $input .= chr($t); for ($t=0; $t<strlen($input); $t++) echo "".ord(substr($input, $t, 1))." "; echo "strlen = ".strlen($input)."\n"; echo("t = $t \n");
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 = 3
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 12
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 12
Branch analysis from position: 27
Branch analysis from position: 12
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/E5bMV
function name:  (null)
number of ops:  36
compiled vars:  !0 = $input, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->8
          3    >   INIT_FCALL                                               'chr'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN_OP                                     8          !0, $4
          7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 1000
          9      > JMPNZ                                                    ~7, ->3
    5    10    >   ASSIGN                                                   !1, 0
         11      > JMP                                                      ->24
         12    >   INIT_FCALL                                               'ord'
         13        INIT_FCALL                                               'substr'
         14        SEND_VAR                                                 !0
         15        SEND_VAR                                                 !1
         16        SEND_VAL                                                 1
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     '', $10
         21        CONCAT                                           ~12     ~11, '+'
         22        ECHO                                                     ~12
         23        PRE_INC                                                  !1
         24    >   STRLEN                                           ~14     !0
         25        IS_SMALLER                                               !1, ~14
         26      > JMPNZ                                                    ~15, ->12
    6    27    >   STRLEN                                           ~16     !0
         28        CONCAT                                           ~17     'strlen+%3D+', ~16
         29        CONCAT                                           ~18     ~17, '%0A'
         30        ECHO                                                     ~18
    7    31        ROPE_INIT                                     3  ~20     't+%3D+'
         32        ROPE_ADD                                      1  ~20     ~20, !1
         33        ROPE_END                                      2  ~19     ~20, '+%0A'
         34        ECHO                                                     ~19
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.75 ms | 1396 KiB | 19 Q