3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "03/21/19 11:20 LOC2 IN: NEW BD PN VO LVA 03/21/19 11:20 LOC2 IN: OLD XD AB VO LVA"; foreach(explode("\n", $str) as $line){ $tmp = explode(": ", $line); $result[] = end($tmp); } var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 18
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/IbfBo
function name:  (null)
number of ops:  23
compiled vars:  !0 = $str, !1 = $line, !2 = $tmp, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '03%2F21%2F19+11%3A20+LOC2+IN%3A+NEW+BD+++++PN++VO++++LVA%0A03%2F21%2F19+11%3A20+LOC2+IN%3A+OLD+XD+++++AB++VO++++LVA'
    6     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5      > FE_RESET_R                                       $6      $5, ->18
          6    > > FE_FETCH_R                                               $6, !1, ->18
    7     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%3A+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    8    12        INIT_FCALL                                               'end'
         13        SEND_REF                                                 !2
         14        DO_ICALL                                         $10     
         15        ASSIGN_DIM                                               !3
         16        OP_DATA                                                  $10
    6    17      > JMP                                                      ->6
         18    >   FE_FREE                                                  $6
   11    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.91 ms | 1400 KiB | 19 Q