3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.25 ms | 1395 KiB | 15 Q