3v4l.org

run code in 300+ PHP versions simultaneously
<?php function text_format($txt) { echo str_replace(array('-','.'), "\n", $txt); } echo text_format("Hello there- How are you today? I am fine thank you. And - yourself");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/F9rNO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'text_format'
          1        SEND_VAL                                                 'Hello+there-+How+are+you+today%3F+I+am+fine+thank+you.+And+-+yourself'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

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

End of function text_format

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.02 ms | 1388 KiB | 16 Q