3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.98 ms | 1385 KiB | 17 Q