3v4l.org

run code in 500+ PHP versions simultaneously
<?php $conn = new SQLite3(':memory:'); $data = "foo\0bar"; var_dump($conn->escapeString($data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hPH7B
function name:  (null)
number of ops:  12
compiled vars:  !0 = $conn, !1 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   NEW                                                  $2      'SQLite3'
          1        SEND_VAL_EX                                                  '%3Amemory%3A'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    4     4        ASSIGN                                                       !1, 'foo%00bar'
    5     5        INIT_FCALL                                                   'var_dump'
          6        INIT_METHOD_CALL                                             !0, 'escapeString'
          7        SEND_VAR_EX                                                  !1
          8        DO_FCALL                                          0  $6      
          9        SEND_VAR                                                     $6
         10        DO_ICALL                                                     
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
221.3 ms | 2301 KiB | 14 Q