3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = ''; 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 = 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 3
Branch analysis from position: 11
Branch analysis from position: 3
filename:       /in/QG5ms
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        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->9
          3    >   INIT_FCALL                                               'chr'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      '%5C', $4
          7        ASSIGN_OP                                     8          !0, ~5
          8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 128
         10      > JMPNZ                                                    ~8, ->3
    6    11    >   STRLEN                                           ~9      !0
         12        CONCAT                                           ~10     'strlen+%3D+', ~9
         13        CONCAT                                           ~11     ~10, '%0A'
         14        ECHO                                                     ~11
    7    15        CONCAT                                           ~12     'Result+%3D+', !0
         16        CONCAT                                           ~13     ~12, '%0A'
         17        ECHO                                                     ~13
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.45 ms | 1386 KiB | 15 Q