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($output as $op) { $result[] = substr($op, -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 = 16
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/SXEf0
function name:  (null)
number of ops:  24
compiled vars:  !0 = $input, !1 = $output, !2 = $result, !3 = $op
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      !1, ->16
          8    > > FE_FETCH_R                                               $8, !3, ->16
   13     9    >   INIT_FCALL                                               'substr'
         10        SEND_VAR                                                 !3
         11        SEND_VAL                                                 -2
         12        DO_ICALL                                         $10     
         13        ASSIGN_DIM                                               !2
         14        OP_DATA                                                  $10
   11    15      > JMP                                                      ->8
         16    >   FE_FREE                                                  $8
   16    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   17    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.8 ms | 1395 KiB | 19 Q