3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'Hello hello, people at Stackoverflow'; $array = ['hello', 'people']; //var_export(str_word_count(strtolower($string), 1)); var_export( $array === array_intersect($array, str_word_count(strtolower($string), 1)) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/POtlE
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Hello+hello%2C+people+at+Stackoverflow'
    4     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'var_export'
    8     3        INIT_FCALL                                               'array_intersect'
          4        SEND_VAR                                                 !1
          5        INIT_FCALL                                               'str_word_count'
          6        INIT_FCALL                                               'strtolower'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $4      
          9        SEND_VAR                                                 $4
         10        SEND_VAL                                                 1
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        IS_IDENTICAL                                     ~7      !1, $6
         15        SEND_VAL                                                 ~7
    7    16        DO_ICALL                                                 
    9    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.1 ms | 1004 KiB | 17 Q