3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unichr($u) { return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES'); } for ($i=0; $i<65535; $i++) { $foo = 'strpos' . unichr($i); if (function_exists($foo)) { print "$foo defined!!!!!<br>"; exit(); } } print "all OK"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/3MlSg
function name:  (null)
number of ops:  20
compiled vars:  !0 = $i, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->16
    7     2    >   INIT_FCALL                                               'unichr'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $3      
          5        CONCAT                                           ~4      'strpos', $3
          6        ASSIGN                                                   !1, ~4
    8     7        INIT_FCALL                                               'function_exists'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->15
    9    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~7      !1, '+defined%21%21%21%21%21%3Cbr%3E'
         13        ECHO                                                     ~7
   10    14      > EXIT                                                     
    6    15    >   PRE_INC                                                  !0
         16    >   IS_SMALLER                                               !0, 65535
         17      > JMPNZ                                                    ~9, ->2
   13    18    >   ECHO                                                     'all+OK'
   15    19      > RETURN                                                   1

Function unichr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3MlSg
function name:  unichr
number of ops:  11
compiled vars:  !0 = $u
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'mb_convert_encoding'
          2        CAST                                          4  ~1      !0
          3        CONCAT                                           ~2      '%26%23', ~1
          4        CONCAT                                           ~3      ~2, '%3B'
          5        SEND_VAL                                                 ~3
          6        SEND_VAL                                                 'UTF-8'
          7        SEND_VAL                                                 'HTML-ENTITIES'
          8        DO_ICALL                                         $4      
          9      > RETURN                                                   $4
    4    10*     > RETURN                                                   null

End of function unichr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1015 KiB | 16 Q