3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stringParaArrayInteiros($valores) { $valores = explode(',', $valores); $valores = array_map('trim', $valores); $valores = array_filter($valores); return array_map('intval', $valores); } print_r(stringParaArrayInteiros('')); print_r(stringParaArrayInteiros('1'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEoRO
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'print_r'
          1        INIT_FCALL                                               'stringparaarrayinteiros'
          2        SEND_VAL                                                 ''
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   10     6        INIT_FCALL                                               'print_r'
          7        INIT_FCALL                                               'stringparaarrayinteiros'
          8        SEND_VAL                                                 '1'
          9        DO_FCALL                                      0  $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Function stringparaarrayinteiros:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TEoRO
function name:  stringParaArrayInteiros
number of ops:  21
compiled vars:  !0 = $valores
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    4     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'trim'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    5    11        INIT_FCALL                                               'array_filter'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
    6    15        INIT_FCALL                                               'array_map'
         16        SEND_VAL                                                 'intval'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19      > RETURN                                                   $7
    7    20*     > RETURN                                                   null

End of function stringparaarrayinteiros

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158 ms | 1399 KiB | 23 Q