3v4l.org

run code in 300+ PHP versions simultaneously
<?php $urls = [ 'https://google.com/', 'https://bing.com/' ]; $names = [ 'Google', 'Bing' ]; echo json_encode( array_map( fn($url, $name) => get_defined_vars(), $urls, $names ), JSON_PRETTY_PRINT );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aJpeK
function name:  (null)
number of ops:  14
compiled vars:  !0 = $urls, !1 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   13     2        INIT_FCALL                                               'json_encode'
   14     3        INIT_FCALL                                               'array_map'
   15     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
          5        SEND_VAL                                                 ~4
   16     6        SEND_VAR                                                 !0
   17     7        SEND_VAR                                                 !1
   14     8        DO_ICALL                                         $5      
   17     9        SEND_VAR                                                 $5
   19    10        SEND_VAL                                                 128
   13    11        DO_ICALL                                         $6      
   19    12        ECHO                                                     $6
   20    13      > 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/aJpeK
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $url, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $2      
          4      > RETURN                                                   $2
          5*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.47 ms | 999 KiB | 16 Q