3v4l.org

run code in 300+ PHP versions simultaneously
<?php const INVALID_QUERY_CHARS = '/[^a-zA-Z0-9.\-\s]+/'; $query = preg_replace(INVALID_QUERY_CHARS, '_', 'Lorem ipsum dolor sit amet');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/khTa2
function name:  (null)
number of ops:  9
compiled vars:  !0 = $query
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'INVALID_QUERY_CHARS', '%2F%5B%5Ea-zA-Z0-9.%5C-%5Cs%5D%2B%2F'
    3     1        INIT_FCALL                                               'preg_replace'
          2        FETCH_CONSTANT                                   ~1      'INVALID_QUERY_CHARS'
          3        SEND_VAL                                                 ~1
          4        SEND_VAL                                                 '_'
          5        SEND_VAL                                                 'Lorem+ipsum+dolor+sit+amet'
          6        DO_ICALL                                         $2      
          7        ASSIGN                                                   !0, $2
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.27 ms | 1393 KiB | 15 Q