3v4l.org

run code in 300+ PHP versions simultaneously
<?php $countries = array( array('CTY_Code' => 'AF', 'CTY_en' => 'Afghanistan', 'CTY_fr' => 'Afghanistan'), array('CTY_Code' => 'AL', 'CTY_en' => 'Albania', 'CTY_fr' => 'Albanie') ); echo sprintf( "<select>%s\n</select>", implode("", array_map(function ($value) { return sprintf("\n\t<option value=\"%s\">%s</option>", $value['CTY_Code'], $value['CTY_en']); }, $countries)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pNpWC
function name:  (null)
number of ops:  16
compiled vars:  !0 = $countries
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        INIT_FCALL                                               'sprintf'
    8     2        SEND_VAL                                                 '%3Cselect%3E%25s%0A%3C%2Fselect%3E'
    9     3        INIT_FCALL                                               'implode'
          4        SEND_VAL                                                 ''
          5        INIT_FCALL                                               'array_map'
          6        DECLARE_LAMBDA_FUNCTION                          ~2      [0]
   11     7        SEND_VAL                                                 ~2
          8        SEND_VAR                                                 !0
    9     9        DO_ICALL                                         $3      
   11    10        SEND_VAR                                                 $3
    9    11        DO_ICALL                                         $4      
   11    12        SEND_VAR                                                 $4
    7    13        DO_ICALL                                         $5      
   11    14        ECHO                                                     $5
         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/pNpWC
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   10     1        INIT_FCALL                                               'sprintf'
          2        SEND_VAL                                                 '%0A%09%3Coption+value%3D%22%25s%22%3E%25s%3C%2Foption%3E'
          3        FETCH_DIM_R                                      ~1      !0, 'CTY_Code'
          4        SEND_VAL                                                 ~1
          5        FETCH_DIM_R                                      ~2      !0, 'CTY_en'
          6        SEND_VAL                                                 ~2
          7        DO_ICALL                                         $3      
          8      > RETURN                                                   $3
   11     9*     > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.49 ms | 1000 KiB | 16 Q