3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = [ ["Rasmus","Lerdorf"], ["Andi","Gutmans"], ["Zeev","Suraski"] ]; foreach ($names as list(&$fname,&$lname)) { $lname = strtoupper($lname); echo $lname,', ', $fname, "<br>\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/OTc4r
function name:  (null)
number of ops:  21
compiled vars:  !0 = $names, !1 = $fname, !2 = $lname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1      > FE_RESET_RW                                      $4      !0, ->19
          2    > > FE_FETCH_RW                                              $4, $5, ->19
          3    >   FETCH_LIST_W                                     $6      $5, 0
          4        MAKE_REF                                         $7      $6
          5        ASSIGN_REF                                               !1, $7
          6        FETCH_LIST_W                                     $8      $5, 1
          7        MAKE_REF                                         $9      $8
          8        ASSIGN_REF                                               !2, $9
          9        FREE                                                     $5
    6    10        INIT_FCALL                                               'strtoupper'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    7    14        ECHO                                                     !2
         15        ECHO                                                     '%2C+'
         16        ECHO                                                     !1
         17        ECHO                                                     '%3Cbr%3E%0A'
    5    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $4
    8    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1395 KiB | 15 Q