3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.65 ms | 1394 KiB | 17 Q