3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array(1, "apples",2, "oranges",3, "plums"); // array_filter() $filtered = array_filter( $array, "ctype_alpha"); $nu = array_map( "strtoupper", $filtered); // array_walk $f = function(&$item,$key,$prefix) { $item = "$key: $prefix: $item"; }; array_walk($nu, $f,"fruit"); var_dump($nu); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNEVV
function name:  (null)
number of ops:  22
compiled vars:  !0 = $array, !1 = $filtered, !2 = $nu, !3 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_filter'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'ctype_alpha'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'array_map'
          7        SEND_VAL                                                 'strtoupper'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $7      
         10        ASSIGN                                                   !2, $7
   10    11        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuNEVV%3A10%240'
         12        ASSIGN                                                   !3, ~9
   13    13        INIT_FCALL                                               'array_walk'
         14        SEND_REF                                                 !2
         15        SEND_VAR                                                 !3
         16        SEND_VAL                                                 'fruit'
         17        DO_ICALL                                                 
   14    18        INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                                 
   15    21      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FuNEVV%3A10%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uNEVV
function name:  {closure}
number of ops:  10
compiled vars:  !0 = $item, !1 = $key, !2 = $prefix
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   11     3        ROPE_INIT                                     5  ~4      !1
          4        ROPE_ADD                                      1  ~4      ~4, '%3A+'
          5        ROPE_ADD                                      2  ~4      ~4, !2
          6        ROPE_ADD                                      3  ~4      ~4, '%3A+'
          7        ROPE_END                                      4  ~3      ~4, !0
          8        ASSIGN                                                   !0, ~3
   12     9      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuNEVV%3A10%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.05 ms | 1400 KiB | 21 Q