3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends Exception { protected $message = "Foobar"; protected $code = 9000; } $foo = new Foo(null, null, new Exception('Bar baz')); var_dump($foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RdInS
function name:  (null)
number of ops:  13
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'Foo'
          1        SEND_VAL_EX                                              null
          2        SEND_VAL_EX                                              null
          3        NEW                                              $2      'Exception'
          4        SEND_VAL_EX                                              'Bar+baz'
          5        DO_FCALL                                      0          
          6        SEND_VAR_NO_REF_EX                                       $2
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !0, $1
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.62 ms | 1394 KiB | 15 Q