3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = '1,2,3,\n,4,5,6,\n,7,8,9'; $arr = explode('\n',$data); var_dump($arr); for ($i=0, $max = count($arr); $i < $max; $i++) { $temp = str_replace(",","",$arr[$i]); $arr[$i] = $temp; } var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 13
Branch analysis from position: 25
Branch analysis from position: 13
filename:       /in/eu2b5
function name:  (null)
number of ops:  29
compiled vars:  !0 = $data, !1 = $arr, !2 = $i, !3 = $max, !4 = $temp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '1%2C2%2C3%2C%5Cn%2C4%2C5%2C6%2C%5Cn%2C7%2C8%2C9'
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%5Cn'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $6      
          5        ASSIGN                                                   !1, $6
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
    5     9        ASSIGN                                                   !2, 0
         10        COUNT                                            ~10     !1
         11        ASSIGN                                                   !3, ~10
         12      > JMP                                                      ->23
    6    13    >   INIT_FCALL                                               'str_replace'
         14        SEND_VAL                                                 '%2C'
         15        SEND_VAL                                                 ''
         16        FETCH_DIM_R                                      ~12     !1, !2
         17        SEND_VAL                                                 ~12
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !4, $13
    7    20        ASSIGN_DIM                                               !1, !2
         21        OP_DATA                                                  !4
    5    22        PRE_INC                                                  !2
         23    >   IS_SMALLER                                               !2, !3
         24      > JMPNZ                                                    ~17, ->13
    9    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                                 
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.32 ms | 1396 KiB | 19 Q