3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = "2011-03-23 10:11:08 34 57 2 25,5 - 2011-03-23 10:11:12 67 54 3 3,5 - 2011-03-23 10:11:16 76 57 3 2,4 - 2011-03-23 10:11:18 39 41 2 25,5 +"; $output = explode("\n", $input); $result = array(); foreach($input as $in) { echo $in; exit; $result[] = substr($in, -2); } print_r($output); print_r($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/dojWk
function name:  (null)
number of ops:  26
compiled vars:  !0 = $input, !1 = $output, !2 = $result, !3 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '2011-03-23++10%3A11%3A08++++34++57++2+++25%2C5++++-%0A2011-03-23++10%3A11%3A12++++67++54++3+++3%2C5+-%0A2011-03-23++10%3A11%3A16++++76++57++3+++2%2C4+-%0A2011-03-23++10%3A11%3A18++++39++41++2+++25%2C5++++%2B'
    8     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
   10     6        ASSIGN                                                   !2, <array>
   11     7      > FE_RESET_R                                       $8      !0, ->18
          8    > > FE_FETCH_R                                               $8, !3, ->18
   13     9    >   ECHO                                                     !3
         10      > EXIT                                                     
   14    11*       INIT_FCALL                                               'substr'
         12*       SEND_VAR                                                 !3
         13*       SEND_VAL                                                 -2
         14*       DO_ICALL                                         $10     
         15*       ASSIGN_DIM                                               !2
         16*       OP_DATA                                                  $10
   11    17*       JMP                                                      ->8
         18    >   FE_FREE                                                  $8
   17    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
   18    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.79 ms | 1395 KiB | 19 Q