3v4l.org

run code in 300+ PHP versions simultaneously
<?php $os = array("Mac", "NT", "Irix", "Linux"); if (in_array("Irix", $os)) { echo "Got Irix"; } if (in_array("mac", $os, true)) { echo "Got mac"; } $ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION); echo $ext;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/RVQQo
function name:  (null)
number of ops:  21
compiled vars:  !0 = $os, !1 = $ext
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 'Irix'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5      > JMPZ                                                     $3, ->7
    6     6    >   ECHO                                                     'Got+Irix'
    8     7    >   INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 'mac'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $4      
         12      > JMPZ                                                     $4, ->14
    9    13    >   ECHO                                                     'Got+mac'
   12    14    >   INIT_FCALL                                               'pathinfo'
         15        SEND_VAL                                                 'http%3A%2F%2Fwww.unitel.tv%2Fwp-content%2Fthemes%2Funitel%2Fimages%2Fmain_logo.png'
         16        SEND_VAL                                                 4
         17        DO_ICALL                                         $5      
         18        ASSIGN                                                   !1, $5
   14    19        ECHO                                                     !1
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.24 ms | 1395 KiB | 17 Q