3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text1 = array ('you', 'hello', 'WORLD'); $text2 = "Hello world"; $text2 = explode(" ", $text2); Var_dump(array_diff($text1, preg_grep("/" . Implode("|", $text2) . "/i", $text1)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WOuh6
function name:  (null)
number of ops:  25
compiled vars:  !0 = $text1, !1 = $text2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, 'Hello+world'
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'array_diff'
          9        SEND_VAR                                                 !0
         10        INIT_FCALL                                               'preg_grep'
         11        INIT_FCALL                                               'implode'
         12        SEND_VAL                                                 '%7C'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      '%2F', $6
         16        CONCAT                                           ~8      ~7, '%2Fi'
         17        SEND_VAL                                                 ~8
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $9      
         20        SEND_VAR                                                 $9
         21        DO_ICALL                                         $10     
         22        SEND_VAR                                                 $10
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.82 ms | 1014 KiB | 18 Q