3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = "SELECT * FROM ?t WHERE id = ?i"; preg_match_all('(\?[nsiuap])', $sql, $placholders); print_r($placeholders); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/R6EN2
function name:  (null)
number of ops:  10
compiled vars:  !0 = $sql, !1 = $placholders, !2 = $placeholders
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'SELECT+%2A+FROM+%3Ft+WHERE+id+%3D+%3Fi'
    3     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%28%5C%3F%5Bnsiuap%5D%29'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !2
          8        DO_ICALL                                                 
    5     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.49 ms | 1394 KiB | 17 Q