3v4l.org

run code in 300+ PHP versions simultaneously
<?php $names = array( 'device' => 'Phones', 'tablet' => 'Tablets', 'smartwatch' => 'Smartwatch', 'speaker' => 'Speaker', 'headphones' => 'Headphones', 'wearable' => 'Wearable', ); var_dump(array_map(strtoupper, array_values($names)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EutMi
function name:  (null)
number of ops:  13
compiled vars:  !0 = $names
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'array_map'
          3        FETCH_CONSTANT                                   ~2      'strtoupper'
          4        SEND_VAL                                                 ~2
          5        INIT_FCALL                                               'array_values'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.23 ms | 1398 KiB | 19 Q