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($employee_age2 as $a => $v); { print ("<p>Employee $a is $v years old</p>"); } // foreach($employee_age3 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/kQAnj
function name:  (null)
number of ops:  32
compiled vars:  !0 = $my_employees_1, !1 = $my_employees_2, !2 = $my_employees_3, !3 = $employee_age2, !4 = $v, !5 = $a, !6 = $employee_age3
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                                       $12     !3, ->13
         10    > > FE_FETCH_R                                       ~13     $12, !4, ->13
         11    >   ASSIGN                                                   !5, ~13
         12      > JMP                                                      ->10
         13    >   FE_FREE                                                  $12
    9    14        ROPE_INIT                                     5  ~16     '%3Cp%3EEmployee+'
         15        ROPE_ADD                                      1  ~16     ~16, !5
         16        ROPE_ADD                                      2  ~16     ~16, '+is+'
         17        ROPE_ADD                                      3  ~16     ~16, !4
         18        ROPE_END                                      4  ~15     ~16, '+years+old%3C%2Fp%3E'
         19        ECHO                                                     ~15
   11    20      > FE_RESET_R                                       $19     !6, ->24
         21    > > FE_FETCH_R                                       ~20     $19, !4, ->24
         22    >   ASSIGN                                                   !5, ~20
         23      > JMP                                                      ->21
         24    >   FE_FREE                                                  $19
   12    25        ROPE_INIT                                     5  ~23     '%3Cp%3EEmployee+'
         26        ROPE_ADD                                      1  ~23     ~23, !5
         27        ROPE_ADD                                      2  ~23     ~23, '+is+'
         28        ROPE_ADD                                      3  ~23     ~23, !4
         29        ROPE_END                                      4  ~22     ~23, '+years+old%3C%2Fp%3E'
         30        ECHO                                                     ~22
   14    31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.75 ms | 1400 KiB | 17 Q