3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'Hello world'; $result = str_split($text); $result = array_map('ord', $result); $result = array_map('dechex', $result); var_dump("0x" . implode('', $result)); var_dump(pack('H*', $text));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aGoiZ
function name:  (null)
number of ops:  31
compiled vars:  !0 = $text, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Hello+world'
    3     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    4     5        INIT_FCALL                                               'array_map'
          6        SEND_VAL                                                 'ord'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        ASSIGN                                                   !1, $5
    5    10        INIT_FCALL                                               'array_map'
         11        SEND_VAL                                                 'dechex'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
    6    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'implode'
         17        SEND_VAL                                                 ''
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $9      
         20        CONCAT                                           ~10     '0x', $9
         21        SEND_VAL                                                 ~10
         22        DO_ICALL                                                 
    8    23        INIT_FCALL                                               'var_dump'
         24        INIT_FCALL                                               'pack'
         25        SEND_VAL                                                 'H%2A'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                         $12     
         28        SEND_VAR                                                 $12
         29        DO_ICALL                                                 
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.72 ms | 1395 KiB | 23 Q