3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mysqli = new mysqli("localhost", "my_user", "my_password", "world"); echo $mysql->real_escape_string("pass' OR '' = ''");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4Fort
function name:  (null)
number of ops:  12
compiled vars:  !0 = $mysqli, !1 = $mysql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'mysqli'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'my_user'
          3        SEND_VAL_EX                                              'my_password'
          4        SEND_VAL_EX                                              'world'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    3     7        INIT_METHOD_CALL                                         !1, 'real_escape_string'
          8        SEND_VAL_EX                                              'pass%27+OR+%27%27+%3D+%27%27'
          9        DO_FCALL                                      0  $5      
         10        ECHO                                                     $5
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.38 ms | 1392 KiB | 13 Q