3v4l.org

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

Class MyException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.81 ms | 1395 KiB | 15 Q