3v4l.org

run code in 300+ PHP versions simultaneously
<?php $my_employees_1 = array ( "Bob" => "37", "Jane" => 22, "Tom" => 58, "Amanda" => 41 ); $my_employees_2=$my_employees_1; asort($my_employees_2); $my_employees_3 =$my_employees_1; ksort($my_employees_3); foreach($my_employees_2 as $a => $v); { print ("<p>Employee $a is $v years old</p>"); } // foreach($my_employees_3 as $a => $v); { print ("<p>Employee $a is $v years old</p>"); }// print the elements of my_employees_3 ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 24
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
Branch analysis from position: 13
filename:       /in/L077U
function name:  (null)
number of ops:  32
compiled vars:  !0 = $my_employees_1, !1 = $my_employees_2, !2 = $my_employees_3, !3 = $v, !4 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, !0
    5     2        INIT_FCALL                                               'asort'
          3        SEND_REF                                                 !1
          4        DO_ICALL                                                 
    6     5        ASSIGN                                                   !2, !0
    7     6        INIT_FCALL                                               'ksort'
          7        SEND_REF                                                 !2
          8        DO_ICALL                                                 
    8     9      > FE_RESET_R                                       $10     !1, ->13
         10    > > FE_FETCH_R                                       ~11     $10, !3, ->13
         11    >   ASSIGN                                                   !4, ~11
         12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $10
    9    14        ROPE_INIT                                     5  ~14     '%3Cp%3EEmployee+'
         15        ROPE_ADD                                      1  ~14     ~14, !4
         16        ROPE_ADD                                      2  ~14     ~14, '+is+'
         17        ROPE_ADD                                      3  ~14     ~14, !3
         18        ROPE_END                                      4  ~13     ~14, '+years+old%3C%2Fp%3E'
         19        ECHO                                                     ~13
   11    20      > FE_RESET_R                                       $17     !2, ->24
         21    > > FE_FETCH_R                                       ~18     $17, !3, ->24
         22    >   ASSIGN                                                   !4, ~18
         23      > JMP                                                      ->21
         24    >   FE_FREE                                                  $17
   12    25        ROPE_INIT                                     5  ~21     '%3Cp%3EEmployee+'
         26        ROPE_ADD                                      1  ~21     ~21, !4
         27        ROPE_ADD                                      2  ~21     ~21, '+is+'
         28        ROPE_ADD                                      3  ~21     ~21, !3
         29        ROPE_END                                      4  ~20     ~21, '+years+old%3C%2Fp%3E'
         30        ECHO                                                     ~20
   14    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.02 ms | 1396 KiB | 17 Q