3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.3 ms | 1395 KiB | 15 Q