3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msg = '$hello , ken (JX02), Your Orders $invoiceno has been delivered. Thank you.'; $hello = "morning!"; $msg = isset($hello) ? str_replace( '$hello' , $hello, $msg): str_replace( '$hello' , "", $msg); $msg = isset($invoiceno) ? str_replace( '$invoiceno' , $invoiceno, $msg): str_replace( '$invoiceno' , "", $msg); echo str_replace(" ", " ", $msg);; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 27
Branch analysis from position: 20
Branch analysis from position: 27
filename:       /in/GL5RO
function name:  (null)
number of ops:  41
compiled vars:  !0 = $msg, !1 = $hello, !2 = $invoiceno
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%24hello+%2C+ken+%28JX02%29%2C+Your+Orders+%24invoiceno+has+been+delivered.+Thank+you.'
    4     1        ASSIGN                                                   !1, 'morning%21'
    5     2        ISSET_ISEMPTY_CV                                         !1
          3      > JMPZ                                                     ~5, ->11
          4    >   INIT_FCALL                                               'str_replace'
          5        SEND_VAL                                                 '%24hello'
          6        SEND_VAR                                                 !1
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        QM_ASSIGN                                        ~7      $6
         10      > JMP                                                      ->17
         11    >   INIT_FCALL                                               'str_replace'
         12        SEND_VAL                                                 '%24hello'
         13        SEND_VAL                                                 ''
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $8      
         16        QM_ASSIGN                                        ~7      $8
         17    >   ASSIGN                                                   !0, ~7
    6    18        ISSET_ISEMPTY_CV                                         !2
         19      > JMPZ                                                     ~10, ->27
         20    >   INIT_FCALL                                               'str_replace'
         21        SEND_VAL                                                 '%24invoiceno'
         22        SEND_VAR                                                 !2
         23        SEND_VAR                                                 !0
         24        DO_ICALL                                         $11     
         25        QM_ASSIGN                                        ~12     $11
         26      > JMP                                                      ->33
         27    >   INIT_FCALL                                               'str_replace'
         28        SEND_VAL                                                 '%24invoiceno'
         29        SEND_VAL                                                 ''
         30        SEND_VAR                                                 !0
         31        DO_ICALL                                         $13     
         32        QM_ASSIGN                                        ~12     $13
         33    >   ASSIGN                                                   !0, ~12
    7    34        INIT_FCALL                                               'str_replace'
         35        SEND_VAL                                                 '++'
         36        SEND_VAL                                                 '+'
         37        SEND_VAR                                                 !0
         38        DO_ICALL                                         $15     
         39        ECHO                                                     $15
    9    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
224.41 ms | 1003 KiB | 14 Q