3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lines = [ "foo;bar", "1;2", ]; $arr = array_map( function(string $value): array { return str_getcsv($value, ";"); }, $lines ); var_dump($arr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/orIGV
function name:  (null)
number of ops:  11
compiled vars:  !0 = $lines, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'array_map'
    8     2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2ForIGV%3A8%240'
   11     3        SEND_VAL                                                 ~3
   12     4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
    7     6        ASSIGN                                                   !1, $4
   15     7        INIT_FCALL                                               'var_dump'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2ForIGV%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/orIGV
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'str_getcsv'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%3B'
          4        DO_ICALL                                         $1      
          5        VERIFY_RETURN_TYPE                                       $1
          6      > RETURN                                                   $1
   11     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2ForIGV%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.65 ms | 1395 KiB | 19 Q