3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = 'Small 2Y7HG2119# Large 2Y7HG2118# Medium 2Y2HG2112#'; echo implode( ' # ', array_filter( explode(' ', $s), function ($ss) { return strpos($ss, '#') === false; } ) ) . ' #';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XT0Ad
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Small+2Y7HG2119%23+Large+2Y7HG2118%23+Medium+2Y2HG2112%23'
    5     1        INIT_FCALL                                               'implode'
    6     2        SEND_VAL                                                 '+%23+'
    7     3        INIT_FCALL                                               'array_filter'
    8     4        INIT_FCALL                                               'explode'
          5        SEND_VAL                                                 '+'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
    9     9        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXT0Ad%3A9%240'
         10        SEND_VAL                                                 ~3
         11        DO_ICALL                                         $4      
         12        SEND_VAR                                                 $4
         13        DO_ICALL                                         $5      
   11    14        CONCAT                                           ~6      $5, '+%23'
         15        ECHO                                                     ~6
         16      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXT0Ad%3A9%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XT0Ad
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $ss
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'strpos'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%23'
          4        DO_ICALL                                         $1      
          5        TYPE_CHECK                                    4  ~2      $1
          6      > RETURN                                                   ~2
          7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXT0Ad%3A9%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.75 ms | 1400 KiB | 21 Q