3v4l.org

run code in 300+ PHP versions simultaneously
<?php $line = '"1212","$ 507.74","$ 0.00","$ 2,954.16","Kč 9,647.00","","TDR 697","","Kč 23,737.00","","","","","Kč 457.00","","","","","Kč 29,959.00","","","","","$ 104.00","","3232"'; $line = explode('","', $line); $line[0] = substr(trim($line[0], "\t\n\r"), 1); $line[count($line)-1] = substr(rtrim($line[count($line)-1], "\t\n\r"), 0, count($line)-1); print_r($line);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XfMCt
function name:  (null)
number of ops:  39
compiled vars:  !0 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%221212%22%2C%22%24+507.74%22%2C%22%24+0.00%22%2C%22%24+2%2C954.16%22%2C%22K%C4%8D+9%2C647.00%22%2C%22%22%2C%22TDR+697%22%2C%22%22%2C%22K%C4%8D+23%2C737.00%22%2C%22%22%2C%22%22%2C%22%22%2C%22%22%2C%22K%C4%8D+457.00%22%2C%22%22%2C%22%22%2C%22%22%2C%22%22%2C%22K%C4%8D+29%2C959.00%22%2C%22%22%2C%22%22%2C%22%22%2C%22%22%2C%22%24+104.00%22%2C%22%22%2C%223232%22'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%22%2C%22'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        INIT_FCALL                                               'substr'
          7        INIT_FCALL                                               'trim'
          8        FETCH_DIM_R                                      ~5      !0, 0
          9        SEND_VAL                                                 ~5
         10        SEND_VAL                                                 '%09%0A%0D'
         11        DO_ICALL                                         $6      
         12        SEND_VAR                                                 $6
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $7      
         15        ASSIGN_DIM                                               !0, 0
         16        OP_DATA                                                  $7
    6    17        COUNT                                            ~8      !0
         18        SUB                                              ~9      ~8, 1
         19        INIT_FCALL                                               'substr'
         20        INIT_FCALL                                               'rtrim'
         21        COUNT                                            ~11     !0
         22        SUB                                              ~12     ~11, 1
         23        FETCH_DIM_R                                      ~13     !0, ~12
         24        SEND_VAL                                                 ~13
         25        SEND_VAL                                                 '%09%0A%0D'
         26        DO_ICALL                                         $14     
         27        SEND_VAR                                                 $14
         28        SEND_VAL                                                 0
         29        COUNT                                            ~15     !0
         30        SUB                                              ~16     ~15, 1
         31        SEND_VAL                                                 ~16
         32        DO_ICALL                                         $17     
         33        ASSIGN_DIM                                               !0, ~9
         34        OP_DATA                                                  $17
    7    35        INIT_FCALL                                               'print_r'
         36        SEND_VAR                                                 !0
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.58 ms | 1396 KiB | 23 Q