3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'ò'; $b = ~$a; echo $a.", ".$b; for ($t=0; $t<strlen($b); $t++) echo "[".ord(substr($b, $t, 1))."] ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 8
Branch analysis from position: 23
Branch analysis from position: 8
filename:       /in/olnFh
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%C3%B2'
    4     1        BW_NOT                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    6     3        CONCAT                                           ~6      !0, '%2C+'
          4        CONCAT                                           ~7      ~6, !1
          5        ECHO                                                     ~7
    7     6        ASSIGN                                                   !2, 0
          7      > JMP                                                      ->20
          8    >   INIT_FCALL                                               'ord'
          9        INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !1
         11        SEND_VAR                                                 !2
         12        SEND_VAL                                                 1
         13        DO_ICALL                                         $9      
         14        SEND_VAR                                                 $9
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     '%5B', $10
         17        CONCAT                                           ~12     ~11, '%5D+'
         18        ECHO                                                     ~12
         19        PRE_INC                                                  !2
         20    >   STRLEN                                           ~14     !1
         21        IS_SMALLER                                               !2, ~14
         22      > JMPNZ                                                    ~15, ->8
         23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.25 ms | 1395 KiB | 17 Q