3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = hex2bin('570069006e0064006f00770073002000530075006200730079007300740065006d00200066006f00720020004c0069006e0075007800200044006900730074007200690062007500740069006f006e0073003a000d000d000a005500620075006e00740075002d00310036002e003000340020002800440065006600610075006c00740029000d000d000a00'); $str = iconv('UTF-16LE', 'UTF-8', $str); $str = str_replace("\r\n", "\n", $str); var_dump($str);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YrFPD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'hex2bin'
          1        SEND_VAL                                                 '570069006e0064006f00770073002000530075006200730079007300740065006d00200066006f00720020004c0069006e0075007800200044006900730074007200690062007500740069006f006e0073003a000d000d000a005500620075006e00740075002d00310036002e003000340020002800440065006600610075006c00740029000d000d000a00'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL_BY_NAME                                       'iconv'
          5        SEND_VAL_EX                                              'UTF-16LE'
          6        SEND_VAL_EX                                              'UTF-8'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0  $3      
          9        ASSIGN                                                   !0, $3
    5    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '%0D%0A'
         12        SEND_VAL                                                 '%0A'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
    6    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.33 ms | 1395 KiB | 19 Q