3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.86 ms | 1399 KiB | 15 Q