3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ [ "", "0,245.19000000,864432", "1,245.26000000,864432", "2,245.49000000,864432", "4,245.33000000,864432" ], [ "", "0,245.19000000,864453", "1,245.26000000,864453", "2,245.49000000,864453", "4,245.33000000,864453" ] ]; var_export( array_map( fn($row) => array_map( fn($string) => sscanf($string, '%d,%f,%d') ?: '', $row ), $array ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TP9pP
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   20     1        INIT_FCALL                                                   'var_export'
   21     2        INIT_FCALL                                                   'array_map'
   22     3        DECLARE_LAMBDA_FUNCTION                              ~3      [0]
          4        BIND_LEXICAL                                                 ~3, !1
   25     5        SEND_VAL                                                     ~3
   26     6        SEND_VAR                                                     !0
   21     7        DO_ICALL                                             $4      
   26     8        SEND_VAR                                                     $4
   20     9        DO_ICALL                                                     
   28    10      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TP9pP
function name:  {closure:/in/TP9pP:22}
number of ops:  9
compiled vars:  !0 = $row, !1 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   22     0  E >   RECV                                                 !0      
          1        BIND_STATIC                                                  !1
          2        INIT_FCALL                                                   'array_map'
   23     3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          4        SEND_VAL                                                     ~2
   24     5        SEND_VAR                                                     !0
   22     6        DO_ICALL                                             $3      
   24     7      > RETURN                                                       $3
   25     8*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TP9pP
function name:  {closure:{closure:/in/TP9pP:22}:23}
number of ops:  9
compiled vars:  !0 = $string
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   23     0  E >   RECV                                                 !0      
          1        INIT_FCALL                                                   'sscanf'
          2        SEND_VAR                                                     !0
          3        SEND_VAL                                                     '%25d%2C%25f%2C%25d'
          4        DO_ICALL                                             $1      
          5        JMP_SET                                              ~2      $1, ->7
          6        QM_ASSIGN                                            ~2      ''
          7      > RETURN                                                       ~2
          8*     > RETURN                                                       null

End of Dynamic Function 0

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
180.53 ms | 1521 KiB | 15 Q