3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = str_replace("testing","",""); if($test === "") $test = "random text"; echo "$test";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/6lc2Y
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'str_replace'
          1        SEND_VAL                                                 'testing'
          2        SEND_VAL                                                 ''
          3        SEND_VAL                                                 ''
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    3     6        IS_IDENTICAL                                             !0, ''
          7      > JMPZ                                                     ~3, ->9
    4     8    >   ASSIGN                                                   !0, 'random+text'
    5     9    >   CAST                                          6  ~5      !0
         10        ECHO                                                     ~5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.41 ms | 1394 KiB | 15 Q