3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i=0;$i<256;$i++){ $data = "a".chr($i)."b"; $a=preg_replace("/[^-_a-z]/", "", $data); if($a!="ab") echo chr($i)."\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 2
Branch analysis from position: 24
Branch analysis from position: 2
Branch analysis from position: 21
filename:       /in/iPTA1
function name:  (null)
number of ops:  25
compiled vars:  !0 = $i, !1 = $data, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->22
    3     2    >   INIT_FCALL                                               'chr'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5        CONCAT                                           ~5      'a', $4
          6        CONCAT                                           ~6      ~5, 'b'
          7        ASSIGN                                                   !1, ~6
    4     8        INIT_FCALL                                               'preg_replace'
          9        SEND_VAL                                                 '%2F%5B%5E-_a-z%5D%2F'
         10        SEND_VAL                                                 ''
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        ASSIGN                                                   !2, $8
    5    14        IS_NOT_EQUAL                                             !2, 'ab'
         15      > JMPZ                                                     ~10, ->21
         16    >   INIT_FCALL                                               'chr'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $11     
         19        CONCAT                                           ~12     $11, '%0A'
         20        ECHO                                                     ~12
    2    21    >   PRE_INC                                                  !0
         22    >   IS_SMALLER                                               !0, 256
         23      > JMPNZ                                                    ~14, ->2
    7    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.82 ms | 1395 KiB | 17 Q