3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1234'; try{ $test = str_replace( '1' ); }catch(Exception $e){ unset($e); } var_dump ($test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f8YBH
function name:  (null)
number of ops:  12
compiled vars:  !0 = $test, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1234'
    4     1        INIT_FCALL                                               'str_replace'
          2        SEND_VAL                                                 '1'
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
          5      > JMP                                                      ->8
    5     6  E > > CATCH                                       last         'Exception'
    6     7    >   UNSET_CV                                                 !1
    8     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1394 KiB | 17 Q