3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $dll = new SplDoublyLinkedList(); var_dump($dll->add(12,'Offset 12 should not exist')); } catch (OutOfRangeException $e) { echo "Exception: ".$e->getMessage()."\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f8clT
function name:  (null)
number of ops:  18
compiled vars:  !0 = $dll, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'add'
          5        SEND_VAL_EX                                              12
          6        SEND_VAL_EX                                              'Offset+12+should+not+exist'
          7        DO_FCALL                                      0  $5      
          8        SEND_VAR                                                 $5
          9        DO_ICALL                                                 
         10      > JMP                                                      ->17
    5    11  E > > CATCH                                       last         'OutOfRangeException'
    6    12    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         13        DO_FCALL                                      0  $7      
         14        CONCAT                                           ~8      'Exception%3A+', $7
         15        CONCAT                                           ~9      ~8, '%0A'
         16        ECHO                                                     ~9
    8    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.86 ms | 1395 KiB | 15 Q