3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "Hello world Line break occurred! smartcrop>>> This is the third line. Literal --> \\n <-- here "; $translator1 = ['smartcrop>>>' => '', '\n' => '']; $translator2 = ['smartcrop>>>' => '', "\n" => '']; echo $string; echo PHP_EOL; echo strtr($string, $translator1); echo PHP_EOL; echo strtr($string, $translator2); echo PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tWMBp
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $translator1, !2 = $translator2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+world%0ALine+break+occurred%21%0Asmartcrop%3E%3E%3E+This+is+the+third+line.%0ALiteral+--%3E+%5Cn+%3C--+here%0A'
    9     1        ASSIGN                                                   !1, <array>
   10     2        ASSIGN                                                   !2, <array>
   12     3        ECHO                                                     !0
   14     4        ECHO                                                     '%0A'
   16     5        INIT_FCALL                                               'strtr'
          6        SEND_VAR                                                 !0
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $6      
          9        ECHO                                                     $6
   18    10        ECHO                                                     '%0A'
   20    11        INIT_FCALL                                               'strtr'
         12        SEND_VAR                                                 !0
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $7      
         15        ECHO                                                     $7
   22    16        ECHO                                                     '%0A'
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.95 ms | 1394 KiB | 15 Q