3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.23 ms | 1400 KiB | 19 Q