3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "value.inside.array", "val-2.of.array", ".var2.in.arr", "dot.notation.", "value. dot", "consecutive....dots", "a.b.c.d.e.f" ]; var_export( preg_grep('~^[^.\s]+(?:\.[^.\s]+)+$~', $array) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FU2MP
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'var_export'
   14     2        INIT_FCALL                                               'preg_grep'
          3        SEND_VAL                                                 '%7E%5E%5B%5E.%5Cs%5D%2B%28%3F%3A%5C.%5B%5E.%5Cs%5D%2B%29%2B%24%7E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
   15     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.25 ms | 1393 KiB | 17 Q