3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flags = array('utf-8,gzip,html,external'); $flags = explode(',', $flags); $flags = array_diff($flags, ['wikitext']); var_dump($flags); $flags = array_diff($flags, ['html']); var_dump($flags);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xs7VW
function name:  (null)
number of ops:  23
compiled vars:  !0 = $flags
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%2C'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        ASSIGN                                                   !0, $2
    5     6        INIT_FCALL                                               'array_diff'
          7        SEND_VAR                                                 !0
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $4      
         10        ASSIGN                                                   !0, $4
    6    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    7    14        INIT_FCALL                                               'array_diff'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 <array>
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !0, $7
    8    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.55 ms | 1386 KiB | 19 Q