3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = preg_grep('#\d#u', ['a', "1\xFF", 'c']); var_dump(preg_last_error()); var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3aY3r
function name:  (null)
number of ops:  14
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_grep'
          1        SEND_VAL                                                 '%23%5Cd%23u'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'preg_last_error'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.21 ms | 1394 KiB | 19 Q