3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fullName = 'Foo!"bar" Baz ΓΈ hello!<strong>poop</strong>'; $fullName = filter_var($fullName, FILTER_CALLBACK, ['options'=>function($value) { $value = trim($value); // strip tags $value = strip_tags($value); // remove double quotes $value = preg_replace('/["<>\{\}\[\]]+/', '', $value); return $value; }]); echo "$fullName\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LHNTT
function name:  (null)
number of ops:  13
compiled vars:  !0 = $fullName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Foo%21%22bar%22+Baz+%C3%B8+hello%21%3Cstrong%3Epoop%3C%2Fstrong%3E'
    4     1        INIT_FCALL                                               'filter_var'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 1024
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FLHNTT%3A4%240'
   11     5        INIT_ARRAY                                       ~3      ~2, 'options'
          6        SEND_VAL                                                 ~3
          7        DO_ICALL                                         $4      
    4     8        ASSIGN                                                   !0, $4
   12     9        NOP                                                      
         10        FAST_CONCAT                                      ~6      !0, '%0A'
         11        ECHO                                                     ~6
         12      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FLHNTT%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LHNTT
function name:  {closure}
number of ops:  17
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'trim'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
    7     5        INIT_FCALL                                               'strip_tags'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        ASSIGN                                                   !0, $3
    9     9        INIT_FCALL                                               'preg_replace'
         10        SEND_VAL                                                 '%2F%5B%22%3C%3E%5C%7B%5C%7D%5C%5B%5C%5D%5D%2B%2F'
         11        SEND_VAL                                                 ''
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                         $5      
         14        ASSIGN                                                   !0, $5
   10    15      > RETURN                                                   !0
   11    16*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FLHNTT%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.97 ms | 1396 KiB | 21 Q