3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dothis($input){ $output = str_replace("hello","howdy",$input); return $output; } echo "here's the message: " . dothis("hello world"); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MN0RD
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'dothis'
          1        SEND_VAL                                                 'hello+world'
          2        DO_FCALL                                      0  $0      
          3        CONCAT                                           ~1      'here%27s+the+message%3A+', $0
          4        ECHO                                                     ~1
   10     5      > RETURN                                                   1

Function dothis:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MN0RD
function name:  dothis
number of ops:  9
compiled vars:  !0 = $input, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 'hello'
          3        SEND_VAL                                                 'howdy'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ASSIGN                                                   !1, $2
    5     7      > RETURN                                                   !1
    6     8*     > RETURN                                                   null

End of function dothis

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.85 ms | 1397 KiB | 16 Q