3v4l.org

run code in 300+ PHP versions simultaneously
<?php $r = array(); $org = 'valid-name'; $r[] = $org; $filter = filter_var($org, FILTER_UNSAFE_RAW, FILTER_FLAG_STRIP_LOW | FILTER_FLAG_STRIP_HIGH); $r[] = $filter; $trim = trim($filter); $r[] = $trim; $mv_space = str_replace('', '-', $trim); $r[] = $mv_space; $rm_w = str_replace(array("\n", "\r", "\t"), '', $mv_space); $r[] = $rm_w; var_dump($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T08FB
function name:  (null)
number of ops:  38
compiled vars:  !0 = $r, !1 = $org, !2 = $filter, !3 = $trim, !4 = $mv_space, !5 = $rm_w
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN                                                   !1, 'valid-name'
    7     2        ASSIGN_DIM                                               !0
          3        OP_DATA                                                  !1
    9     4        INIT_FCALL                                               'filter_var'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 516
          7        SEND_VAL                                                 12
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !2, $9
   10    10        ASSIGN_DIM                                               !0
         11        OP_DATA                                                  !2
   12    12        INIT_FCALL                                               'trim'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   13    16        ASSIGN_DIM                                               !0
         17        OP_DATA                                                  !3
   15    18        INIT_FCALL                                               'str_replace'
         19        SEND_VAL                                                 ''
         20        SEND_VAL                                                 '-'
         21        SEND_VAR                                                 !3
         22        DO_ICALL                                         $15     
         23        ASSIGN                                                   !4, $15
   16    24        ASSIGN_DIM                                               !0
         25        OP_DATA                                                  !4
   18    26        INIT_FCALL                                               'str_replace'
         27        SEND_VAL                                                 <array>
         28        SEND_VAL                                                 ''
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                         $18     
         31        ASSIGN                                                   !5, $18
   19    32        ASSIGN_DIM                                               !0
         33        OP_DATA                                                  !5
   24    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !0
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.67 ms | 1396 KiB | 21 Q