3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = ""; echo chr(0); for ($t=0; $t<128; $t++) $result .= chr($t); echo "strlen = ".strlen($result)."\n"; echo "Result = ".$result."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/s6nSW
function name:  (null)
number of ops:  19
compiled vars:  !0 = $result, !1 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ECHO                                                     '%00'
    6     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->9
          4    >   INIT_FCALL                                               'chr'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $4      
          7        ASSIGN_OP                                     8          !0, $4
          8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 128
         10      > JMPNZ                                                    ~7, ->4
    7    11    >   STRLEN                                           ~8      !0
         12        CONCAT                                           ~9      'strlen+%3D+', ~8
         13        CONCAT                                           ~10     ~9, '%0A'
         14        ECHO                                                     ~10
    8    15        CONCAT                                           ~11     'Result+%3D+', !0
         16        CONCAT                                           ~12     ~11, '%0A'
         17        ECHO                                                     ~12
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.5 ms | 1386 KiB | 15 Q