3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylist = array("thing1" => "Balloon", "thing2" => "Cat", "thing3" => "Egg", "thing4" => "Dog", "thing5" => "Apple"); asort($mylist); foreach($mylist as $id => $value) { $id = htmlentities($id, ENT_QUOTES); $value = htmlentities($value); echo "<div id='{$id}'>{$value}</div>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 23
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/Fl1mj
function name:  (null)
number of ops:  25
compiled vars:  !0 = $mylist, !1 = $value, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'asort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    5     4      > FE_RESET_R                                       $5      !0, ->23
          5    > > FE_FETCH_R                                       ~6      $5, !1, ->23
          6    >   ASSIGN                                                   !2, ~6
    6     7        INIT_FCALL                                               'htmlentities'
          8        SEND_VAR                                                 !2
          9        SEND_VAL                                                 3
         10        DO_ICALL                                         $8      
         11        ASSIGN                                                   !2, $8
    7    12        INIT_FCALL                                               'htmlentities'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $10     
         15        ASSIGN                                                   !1, $10
    8    16        ROPE_INIT                                     5  ~13     '%3Cdiv+id%3D%27'
         17        ROPE_ADD                                      1  ~13     ~13, !2
         18        ROPE_ADD                                      2  ~13     ~13, '%27%3E'
         19        ROPE_ADD                                      3  ~13     ~13, !1
         20        ROPE_END                                      4  ~12     ~13, '%3C%2Fdiv%3E'
         21        ECHO                                                     ~12
    5    22      > JMP                                                      ->5
         23    >   FE_FREE                                                  $5
    9    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.16 ms | 1395 KiB | 17 Q