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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.38 ms | 1395 KiB | 19 Q