3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (version_compare(PHP_VERSION, '5.4.0', 'lt')) { class_alias('My\ArrayObject', 'Component\ArrayObject'); } else { class_alias('ArrayObject', 'Component\ArrayObject'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Qtmoh
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'version_compare'
          1        SEND_VAL                                                 '8.0.0'
          2        SEND_VAL                                                 '5.4.0'
          3        SEND_VAL                                                 'lt'
          4        DO_ICALL                                         $0      
          5      > JMPZ                                                     $0, ->11
    4     6    >   INIT_FCALL                                               'class_alias'
          7        SEND_VAL                                                 'My%5CArrayObject'
          8        SEND_VAL                                                 'Component%5CArrayObject'
          9        DO_ICALL                                                 
         10      > JMP                                                      ->15
    6    11    >   INIT_FCALL                                               'class_alias'
         12        SEND_VAL                                                 'ArrayObject'
         13        SEND_VAL                                                 'Component%5CArrayObject'
         14        DO_ICALL                                                 
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.04 ms | 1394 KiB | 17 Q