3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = "apple,carrot,pine"; $second = "fruit,veggie,tree"; $array1 = explode(",", $first); $array2 = explode(",", $second); reset($array1); reset($array2); while (key($array1) !== null && key($array2) !== null) { $number1 = current($array1); $number2 = current($array2); echo $number1, $number2, "<br>"; next($array1); next($array2); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 46
Branch analysis from position: 41
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 19
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 46) Position 1 = 41, Position 2 = 46
Branch analysis from position: 41
Branch analysis from position: 46
Branch analysis from position: 46
filename:       /in/gmc2T
function name:  (null)
number of ops:  48
compiled vars:  !0 = $first, !1 = $second, !2 = $array1, !3 = $array2, !4 = $number1, !5 = $number2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'apple%2Ccarrot%2Cpine'
    4     1        ASSIGN                                                   !1, 'fruit%2Cveggie%2Ctree'
    6     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !2, $8
    7     7        INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $10     
         11        ASSIGN                                                   !3, $10
    9    12        INIT_FCALL                                               'reset'
         13        SEND_REF                                                 !2
         14        DO_ICALL                                                 
   10    15        INIT_FCALL                                               'reset'
         16        SEND_REF                                                 !3
         17        DO_ICALL                                                 
   12    18      > JMP                                                      ->36
   13    19    >   INIT_FCALL                                               'current'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $14     
         22        ASSIGN                                                   !4, $14
   14    23        INIT_FCALL                                               'current'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                         $16     
         26        ASSIGN                                                   !5, $16
   16    27        ECHO                                                     !4
         28        ECHO                                                     !5
         29        ECHO                                                     '%3Cbr%3E'
   18    30        INIT_FCALL                                               'next'
         31        SEND_REF                                                 !2
         32        DO_ICALL                                                 
   19    33        INIT_FCALL                                               'next'
         34        SEND_REF                                                 !3
         35        DO_ICALL                                                 
   12    36    >   INIT_FCALL                                               'key'
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                         $20     
         39        TYPE_CHECK                                  1020  ~21     $20
         40      > JMPZ_EX                                          ~21     ~21, ->46
         41    >   INIT_FCALL                                               'key'
         42        SEND_VAR                                                 !3
         43        DO_ICALL                                         $22     
         44        TYPE_CHECK                                  1020  ~23     $22
         45        BOOL                                             ~21     ~23
         46    > > JMPNZ                                                    ~21, ->19
   20    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.02 ms | 1405 KiB | 23 Q