3v4l.org

run code in 300+ PHP versions simultaneously
<?php $result = new stdClass(); $result->getErrorException = 'hello'; throw new $result->getErrorException();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/OTJAb
function name:  (null)
number of ops:  11
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        ASSIGN_OBJ                                               !0, 'getErrorException'
          4        OP_DATA                                                  'hello'
    5     5        FETCH_OBJ_R                                      ~5      !0, 'getErrorException'
          6        FETCH_CLASS                                   0  $6      ~5
          7        NEW                                              $7      $6
          8        DO_FCALL                                      0          
          9      > THROW                                         0          $7
         10*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.33 ms | 1393 KiB | 13 Q