3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "asd asd cxv fgg fds fda "; $strArray = explode(PHP_EOL, $str); $last = array(); foreach ($strArray as $s) { $tmp = explode(' ', $s); $last[] = array_pop($tmp); echo $last; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 21
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/O4A6U
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $strArray, !2 = $last, !3 = $s, !4 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'asd+asd%0Acxv+fgg%0Afds+fda%0A'
    7     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    8     6        ASSIGN                                                   !2, <array>
    9     7      > FE_RESET_R                                       $9      !1, ->21
          8    > > FE_FETCH_R                                               $9, !3, ->21
   10     9    >   INIT_FCALL                                               'explode'
         10        SEND_VAL                                                 '+'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !4, $10
   11    14        INIT_FCALL                                               'array_pop'
         15        SEND_REF                                                 !4
         16        DO_ICALL                                         $13     
         17        ASSIGN_DIM                                               !2
         18        OP_DATA                                                  $13
   12    19        ECHO                                                     !2
    9    20      > JMP                                                      ->8
         21    >   FE_FREE                                                  $9
   13    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.68 ms | 1395 KiB | 17 Q