3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StringUtils { public static function crlfize($str) { return str_replace("\n", "\r\n", $str); } } $ini = StringUtils::crlfize(<<<'INI' [4FABE013BD2443C0BB80BBA89FF7AF6A] post_content = "$ INI ); var_dump(parse_ini_string($ini));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tpXff
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ini
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_STATIC_METHOD_CALL                                  'StringUtils', 'crlfize'
   12     1        SEND_VAL                                                 '%5B4FABE013BD2443C0BB80BBA89FF7AF6A%5D%0Apost_content+%3D+%22%24%0A'
          2        DO_FCALL                                      0  $1      
   11     3        ASSIGN                                                   !0, $1
   18     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'parse_ini_string'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class StringUtils:
Function crlfize:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tpXff
function name:  crlfize
number of ops:  8
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAL                                                 '%0D%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    6     7*     > RETURN                                                   null

End of function crlfize

End of class StringUtils.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.72 ms | 1395 KiB | 19 Q