3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = new SplString("Testing"); try { $string = array(); } catch (UnexpectedValueException $uve) { echo $uve->getMessage() . PHP_EOL; } var_dump($string); echo $string; // Outputs "Testing" ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
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/QZBON
function name:  (null)
number of ops:  16
compiled vars:  !0 = $string, !1 = $uve
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'SplString'
          1        SEND_VAL_EX                                              'Testing'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        ASSIGN                                                   !0, <array>
          5      > JMP                                                      ->11
    6     6  E > > CATCH                                       last         'UnexpectedValueException'
    7     7    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          8        DO_FCALL                                      0  $6      
          9        CONCAT                                           ~7      $6, '%0A'
         10        ECHO                                                     ~7
   10    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   11    14        ECHO                                                     !0
   13    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.4 ms | 1394 KiB | 15 Q