3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Foo; interface ThrowablePhp5 {} if (version_compare(PHP_VERSION, '7.0.0', 'lt')) { class_alias('Foo\ThrowablePhp5', '\Throwable'); } interface AnException extends \Throwable {} class FooException extends \Exception implements AnException{}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/7NPYS
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_NS_FCALL_BY_NAME                                        'Foo%5Cversion_compare'
          1        FETCH_CONSTANT                                       ~0      'Foo%5CPHP_VERSION'
          2        SEND_VAL_EX                                                  ~0
          3        SEND_VAL_EX                                                  '7.0.0'
          4        SEND_VAL_EX                                                  'lt'
          5        DO_FCALL                                          0  $1      
          6      > JMPZ                                                         $1, ->11
    8     7    >   INIT_NS_FCALL_BY_NAME                                        'Foo%5Cclass_alias'
          8        SEND_VAL_EX                                                  'Foo%5CThrowablePhp5'
          9        SEND_VAL_EX                                                  '%5CThrowable'
         10        DO_FCALL                                          0          
   11    11    >   DECLARE_CLASS                                                'foo%5Canexception'
   13    12        DECLARE_CLASS                                                'foo%5Cfooexception', 'exception'
         13      > RETURN                                                       1

Class Foo\ThrowablePhp5: [no user functions]
Class Foo\AnException: [no user functions]
Class Foo\FooException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
179.48 ms | 3280 KiB | 15 Q