3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = ' Apple,20,red Pear,10,yellow '; $arr = array_filter(array_map('trim', explode(PHP_EOL, $text))); print_r($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/56tpV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $text, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%0AApple%2C20%2Cred%0A%0APear%2C10%2Cyellow%0A'
    8     1        INIT_FCALL                                               'array_filter'
          2        INIT_FCALL                                               'array_map'
          3        SEND_VAL                                                 'trim'
          4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '%0A'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !1, $5
    9    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.64 ms | 1394 KiB | 21 Q