3v4l.org

run code in 500+ PHP versions simultaneously
<?php $cards = explode(',', '16, 01, 05'); $users = explode(',', 'User2, User1, User7'); $images = explode(',', 'img2.jpg, img1.jpg, img7.jpg'); $cards = array_map('trim', $cards); $users = array_map('trim', $users); $images = array_map('trim', $images); foreach ($cards as $key => $value) { echo sprintf( 'Box %02d = %s (%s link)', $cards[$key], $users[$key], $images[$key] ) . PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 45
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 45
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 45
filename:       /in/5iABB
function name:  (null)
number of ops:  47
compiled vars:  !0 = $cards, !1 = $users, !2 = $images, !3 = $value, !4 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'explode'
          1        SEND_VAL                                                     '%2C'
          2        SEND_VAL                                                     '16%2C+01%2C+05'
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !0, $5
    4     5        INIT_FCALL                                                   'explode'
          6        SEND_VAL                                                     '%2C'
          7        SEND_VAL                                                     'User2%2C+User1%2C+User7'
          8        DO_ICALL                                             $7      
          9        ASSIGN                                                       !1, $7
    5    10        INIT_FCALL                                                   'explode'
         11        SEND_VAL                                                     '%2C'
         12        SEND_VAL                                                     'img2.jpg%2C+img1.jpg%2C+img7.jpg'
         13        DO_ICALL                                             $9      
         14        ASSIGN                                                       !2, $9
    7    15        INIT_FCALL                                                   'array_map'
         16        SEND_VAL                                                     'trim'
         17        SEND_VAR                                                     !0
         18        DO_ICALL                                             $11     
         19        ASSIGN                                                       !0, $11
    8    20        INIT_FCALL                                                   'array_map'
         21        SEND_VAL                                                     'trim'
         22        SEND_VAR                                                     !1
         23        DO_ICALL                                             $13     
         24        ASSIGN                                                       !1, $13
    9    25        INIT_FCALL                                                   'array_map'
         26        SEND_VAL                                                     'trim'
         27        SEND_VAR                                                     !2
         28        DO_ICALL                                             $15     
         29        ASSIGN                                                       !2, $15
   11    30      > FE_RESET_R                                           $17     !0, ->45
         31    > > FE_FETCH_R                                           ~18     $17, !3, ->45
         32    >   ASSIGN                                                       !4, ~18
   12    33        INIT_FCALL                                                   'sprintf'
   13    34        SEND_VAL                                                     'Box+%2502d+%3D+%25s+%28%25s+link%29'
   14    35        FETCH_DIM_R                                          ~20     !0, !4
         36        SEND_VAL                                                     ~20
   15    37        FETCH_DIM_R                                          ~21     !1, !4
         38        SEND_VAL                                                     ~21
   16    39        FETCH_DIM_R                                          ~22     !2, !4
         40        SEND_VAL                                                     ~22
   12    41        DO_ICALL                                             $23     
   17    42        CONCAT                                               ~24     $23, '%0A'
         43        ECHO                                                         ~24
   11    44      > JMP                                                          ->31
         45    >   FE_FREE                                                      $17
   18    46      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
166.61 ms | 2155 KiB | 16 Q