3v4l.org

run code in 500+ 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 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/0LD5i
function name:  (null)
number of ops:  14
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                                                   'end'
          8        SEND_REF                                                     !2
          9        DO_ICALL                                             $7      
         10        FRAMELESS_ICALL_2                in_array            ~8      $7, !1
         11      > JMPZ                                                         ~8, ->13
    6    12    >   ECHO                                                         'Matched'
    7    13    > > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.63 ms | 2077 KiB | 15 Q