3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "\0"; echo "[".ord($a)."] "; echo "[".ord(utf8_encode($a))."] ";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OsQc8
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%00'
    6     1        INIT_FCALL                                               'ord'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $2      
          4        CONCAT                                           ~3      '%5B', $2
          5        CONCAT                                           ~4      ~3, '%5D+'
          6        ECHO                                                     ~4
    7     7        INIT_FCALL                                               'ord'
          8        INIT_FCALL                                               'utf8_encode'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                         $6      
         13        CONCAT                                           ~7      '%5B', $6
         14        CONCAT                                           ~8      ~7, '%5D+'
         15        ECHO                                                     ~8
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.09 ms | 1394 KiB | 17 Q