3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.39 ms | 1395 KiB | 19 Q