3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_GET['foo'] = "' or '1'='1"; var_dump(is_trusted((int) $_GET['foo']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/shGvB
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $0      '_GET'
          1        ASSIGN_DIM                                               $0, 'foo'
          2        OP_DATA                                                  '%27+or+%271%27%3D%271'
    5     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL_BY_NAME                                       'is_trusted'
          5        FETCH_R                      global              ~2      '_GET'
          6        FETCH_DIM_R                                      ~3      ~2, 'foo'
          7        CAST                                          4  ~4      ~3
          8        SEND_VAL_EX                                              ~4
          9        DO_FCALL                                      0  $5      
         10        SEND_VAR                                                 $5
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.48 ms | 1398 KiB | 15 Q