3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); /** @deprecated */ function doFoo(mixed $filter): void { $x = filter_input(INPUT_GET, 'search', FILTER_SANITIZE_STRING ); } doFoo(123);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/opYVk
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   13     3        INIT_FCALL                                               'dofoo'
          4        SEND_VAL                                                 123
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function dofoo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/opYVk
function name:  doFoo
number of ops:  9
compiled vars:  !0 = $filter, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'filter_input'
          2        SEND_VAL                                                 1
    8     3        SEND_VAL                                                 'search'
    9     4        FETCH_CONSTANT                                   ~2      'FILTER_SANITIZE_STRING'
          5        SEND_VAL                                                 ~2
    7     6        DO_ICALL                                         $3      
          7        ASSIGN                                                   !1, $3
   11     8      > RETURN                                                   null

End of function dofoo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.08 ms | 1002 KiB | 16 Q