3v4l.org

run code in 300+ PHP versions simultaneously
<?php define (“MYCONSTANT”,150); define (“MYCONSTANT”,160); echo MYCONSTANT; $n = $i = 5; while ($i--) echo str_repeat(' ', $i).str_repeat('* ', $n - $i)."\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 15
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 15
Branch analysis from position: 29
Branch analysis from position: 15
filename:       /in/pBjv0
function name:  (null)
number of ops:  30
compiled vars:  !0 = $n, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        FETCH_CONSTANT                                   ~2      '%E2%80%9CMYCONSTANT%E2%80%9D'
          2        SEND_VAL                                                 ~2
          3        SEND_VAL                                                 150
          4        DO_ICALL                                                 
    3     5        INIT_FCALL                                               'define'
          6        FETCH_CONSTANT                                   ~4      '%E2%80%9CMYCONSTANT%E2%80%9D'
          7        SEND_VAL                                                 ~4
          8        SEND_VAL                                                 160
          9        DO_ICALL                                                 
    5    10        FETCH_CONSTANT                                   ~6      'MYCONSTANT'
         11        ECHO                                                     ~6
    6    12        ASSIGN                                           ~7      !1, 5
         13        ASSIGN                                                   !0, ~7
    8    14      > JMP                                                      ->27
    9    15    >   INIT_FCALL                                               'str_repeat'
         16        SEND_VAL                                                 '+'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                         $9      
         19        INIT_FCALL                                               'str_repeat'
         20        SEND_VAL                                                 '%2A+'
         21        SUB                                              ~10     !0, !1
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                         $11     
         24        CONCAT                                           ~12     $9, $11
         25        CONCAT                                           ~13     ~12, '%0A'
         26        ECHO                                                     ~13
    8    27    >   POST_DEC                                         ~14     !1
         28      > JMPNZ                                                    ~14, ->15
   11    29    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1396 KiB | 17 Q