3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'PHP is a server side web programming language , PHP is amazing , I love PHP'; $array = array('html','css','javascript','ajax','html5','css3','jquery','PHP'); $words = explode(' ', $string); if(in_array(end($words), $array)){ echo 'Matched'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/0LD5i
function name:  (null)
number of ops:  17
compiled vars:  !0 = $string, !1 = $array, !2 = $words
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'PHP+is+a+server+side+web+programming+language+%2C+PHP+is+amazing+%2C+I+love+PHP'
    3     1        ASSIGN                                                   !1, <array>
    4     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !2, $5
    5     7        INIT_FCALL                                               'in_array'
          8        INIT_FCALL                                               'end'
          9        SEND_REF                                                 !2
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $8      
         14      > JMPZ                                                     $8, ->16
    6    15    >   ECHO                                                     'Matched'
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
129.48 ms | 1399 KiB | 19 Q