3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = str_replace("testing","",""); if($test === "") $test = toupper("random text"); echo "$test";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/PsKPb
function name:  (null)
number of ops:  15
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, ->12
    4     8    >   INIT_FCALL_BY_NAME                                       'toupper'
          9        SEND_VAL_EX                                              'random+text'
         10        DO_FCALL                                      0  $4      
         11        ASSIGN                                                   !0, $4
    5    12    >   CAST                                          6  ~6      !0
         13        ECHO                                                     ~6
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
229.12 ms | 1394 KiB | 15 Q