3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ''; for ($i=0; $i<256; $i++) { $c = chr($i); if (json_encode($c) === "\"$c\"") { $str .= $c; } } echo $str;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 3
Branch analysis from position: 19
Branch analysis from position: 3
Branch analysis from position: 16
filename:       /in/qQ9PT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $str, !1 = $i, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    5     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->17
    6     3    >   INIT_FCALL                                               'chr'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    7     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $7      
         10        ROPE_INIT                                     3  ~9      '%22'
         11        ROPE_ADD                                      1  ~9      ~9, !2
         12        ROPE_END                                      2  ~8      ~9, '%22'
         13        IS_IDENTICAL                                             $7, ~8
         14      > JMPZ                                                     ~11, ->16
    8    15    >   ASSIGN_OP                                     8          !0, !2
    5    16    >   PRE_INC                                                  !1
         17    >   IS_SMALLER                                               !1, 256
         18      > JMPNZ                                                    ~14, ->3
   12    19    >   ECHO                                                     !0
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.35 ms | 1399 KiB | 17 Q