3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string='ELEMENTRARY'; $array=str_split($string); echo implode(array_filter($array, function($item){ return $item==='E'; })) ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZLRXQ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'ELEMENTRARY'
    4     1        INIT_FCALL                                               'str_split'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        INIT_FCALL                                               'implode'
          6        INIT_FCALL                                               'array_filter'
          7        SEND_VAR                                                 !1
          8        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FZLRXQ%3A6%240'
    8     9        SEND_VAL                                                 ~5
         10        DO_ICALL                                         $6      
         11        SEND_VAR                                                 $6
         12        DO_ICALL                                         $7      
         13        ECHO                                                     $7
    9    14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FZLRXQ%3A6%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZLRXQ
function name:  {closure}
number of ops:  4
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        IS_IDENTICAL                                     ~1      !0, 'E'
          2      > RETURN                                                   ~1
    8     3*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FZLRXQ%3A6%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.38 ms | 1395 KiB | 19 Q