3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phones = '123456;7890'; echo json_encode(['phones' => array_map( fn($numbers) => get_defined_vars(), explode(';', $phones) )]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/29MTO
function name:  (null)
number of ops:  16
compiled vars:  !0 = $phones
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '123456%3B7890'
    4     1        INIT_FCALL                                               'json_encode'
          2        INIT_FCALL                                               'array_map'
    5     3        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
          4        SEND_VAL                                                 ~2
    6     5        INIT_FCALL                                               'explode'
          6        SEND_VAL                                                 '%3B'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
    4    10        DO_ICALL                                         $4      
    6    11        INIT_ARRAY                                       ~5      $4, 'phones'
         12        SEND_VAL                                                 ~5
    4    13        DO_ICALL                                         $6      
    6    14        ECHO                                                     $6
    7    15      > 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/29MTO
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $numbers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'get_defined_vars'
          2        DO_ICALL                                         $1      
          3      > RETURN                                                   $1
          4*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.09 ms | 1013 KiB | 17 Q