3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HTTP_USER_AGENT = "afeaetest2asdf"; $INSTALLED_STYLES = array("desktop","mobile","topifySeo"); $seo_agents = "test1,test2,test3"; $custom1agents = str_replace(",","|",$seo_agents);//explode(",",$seo_agents); echo $custom1agents; /* if(preg_match('/('.implode('|', $custom1agents).')/i', $HTTP_USER_AGENT, $match)) { echo "matched"; } else { echo "did not match"; }*/
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rZdWI
function name:  (null)
number of ops:  11
compiled vars:  !0 = $HTTP_USER_AGENT, !1 = $INSTALLED_STYLES, !2 = $seo_agents, !3 = $custom1agents
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'afeaetest2asdf'
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, 'test1%2Ctest2%2Ctest3'
    5     3        INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '%2C'
          5        SEND_VAL                                                 '%7C'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !3, $7
    6     9        ECHO                                                     !3
   15    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.75 ms | 1394 KiB | 15 Q