3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matches = array(); var_dump(preg_match_all('/[^a-zA-Z0-9.-\s]+/', '[[-?)', $matches)); var_dump($matches); $matches = array(); var_dump(preg_match_all('/[^a-zA-Z0-9.\-\s]+/', '[[-?)', $matches)); var_dump($matches);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VSnTO
function name:  (null)
number of ops:  25
compiled vars:  !0 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'preg_match_all'
          3        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9.-%5Cs%5D%2B%2F'
          4        SEND_VAL                                                 '%5B%5B-%3F%29'
          5        SEND_REF                                                 !0
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                                 
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    7    12        ASSIGN                                                   !0, <array>
    8    13        INIT_FCALL                                               'var_dump'
         14        INIT_FCALL                                               'preg_match_all'
         15        SEND_VAL                                                 '%2F%5B%5Ea-zA-Z0-9.%5C-%5Cs%5D%2B%2F'
         16        SEND_VAL                                                 '%5B%5B-%3F%29'
         17        SEND_REF                                                 !0
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        DO_ICALL                                                 
    9    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.11 ms | 1395 KiB | 17 Q