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"; } $a = array("uno" => "aaaa", "dos" => "BBBB"); $ext = pathinfo("http://www.unitel.tv/wp-content/themes/unitel/images/main_logo.png", PATHINFO_EXTENSION); echo $ext; echo " ".$a["uno"]; if (in_array("dos", $a, true)) { echo "<br>Si"; }
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
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
Branch analysis from position: 14
Branch analysis from position: 7
filename:       /in/5ZXAj
function name:  (null)
number of ops:  32
compiled vars:  !0 = $os, !1 = $a, !2 = $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                                         $4      
          5      > JMPZ                                                     $4, ->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                                         $5      
         12      > JMPZ                                                     $5, ->14
    9    13    >   ECHO                                                     'Got+mac'
   11    14    >   ASSIGN                                                   !1, <array>
   12    15        INIT_FCALL                                               'pathinfo'
         16        SEND_VAL                                                 'http%3A%2F%2Fwww.unitel.tv%2Fwp-content%2Fthemes%2Funitel%2Fimages%2Fmain_logo.png'
         17        SEND_VAL                                                 4
         18        DO_ICALL                                         $7      
         19        ASSIGN                                                   !2, $7
   14    20        ECHO                                                     !2
   15    21        FETCH_DIM_R                                      ~9      !1, 'uno'
         22        CONCAT                                           ~10     '+++', ~9
         23        ECHO                                                     ~10
   17    24        INIT_FCALL                                               'in_array'
         25        SEND_VAL                                                 'dos'
         26        SEND_VAR                                                 !1
         27        SEND_VAL                                                 <true>
         28        DO_ICALL                                         $11     
         29      > JMPZ                                                     $11, ->31
   18    30    >   ECHO                                                     '%3Cbr%3ESi'
   19    31    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.24 ms | 1396 KiB | 17 Q