3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $color = array('white', 'green', 'red'); foreach ($color as $c) { echo "$c, "; } sort($color); echo "<ul>"; foreach ($color as $y) { echo "<li>$y</li>"; } echo "</ul>"; ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
Jump found. Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
Jump found. Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
Jump found. Position 1 = 13, Position 2 = 19
Branch analysis from position: 13
Jump found. Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
Jump found. Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 19
Jump found. Position 1 = -2
Branch analysis from position: 19
Branch analysis from position: 7
filename:       /in/XaJ0E
function name:  (null)
number of ops:  22
compiled vars:  !0 = $color, !1 = $c, !2 = $y
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, <array>
   3     1      > FE_RESET_R                                       $4      !0, ->7
         2    > > FE_FETCH_R                                               $4, !1, ->7
   5     3    >   NOP                                                      
         4        FAST_CONCAT                                      ~5      !1, '%2C+'
         5        ECHO                                                     ~5
         6      > JMP                                                      ->2
         7    >   FE_FREE                                                  $4
   7     8        INIT_FCALL                                               'sort'
         9        SEND_REF                                                 !0
        10        DO_ICALL                                                 
   8    11        ECHO                                                     '%3Cul%3E'
   9    12      > FE_RESET_R                                       $7      !0, ->19
        13    > > FE_FETCH_R                                               $7, !2, ->19
  11    14    >   ROPE_INIT                                     3  ~9      '%3Cli%3E'
        15        ROPE_ADD                                      1  ~9      ~9, !2
        16        ROPE_END                                      2  ~8      ~9, '%3C%2Fli%3E'
        17        ECHO                                                     ~8
        18      > JMP                                                      ->13
        19    >   FE_FREE                                                  $7
  13    20        ECHO                                                     '%3C%2Ful%3E'
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0