3v4l.org

run code in 300+ PHP versions simultaneously
<?php // prints e.g. 'Current PHP version: 4.1.1' //echo 'Current PHP version: ' . phpversion(); $a = (array)json_decode('{"a2" : [{"ctf": "ctf"},{"aaa": "aaa"},/ctf/]}'); var_dump(array_search("ctf",$a["a2"])); foreach($a["a2"] as $key=>$val){ $val==="ctf"?die("nope"):NULL; } echo "AYEAHFDSFDSAH"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 25
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
filename:       /in/netkp
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22a2%22+%3A+%5B%7B%22ctf%22%3A+%22ctf%22%7D%2C%7B%22aaa%22%3A+%22aaa%22%7D%2C%2Fctf%2F%5D%7D'
          2        DO_ICALL                                         $3      
          3        CAST                                          7  ~4      $3
          4        ASSIGN                                                   !0, ~4
    5     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_search'
          7        SEND_VAL                                                 'ctf'
          8        FETCH_DIM_R                                      ~6      !0, 'a2'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                         $7      
         11        SEND_VAR                                                 $7
         12        DO_ICALL                                                 
    6    13        FETCH_DIM_R                                      ~9      !0, 'a2'
         14      > FE_RESET_R                                       $10     ~9, ->25
         15    > > FE_FETCH_R                                       ~11     $10, !1, ->25
         16    >   ASSIGN                                                   !2, ~11
    7    17        IS_IDENTICAL                                             !1, 'ctf'
         18      > JMPZ                                                     ~13, ->22
         19    > > EXIT                                                     'nope'
         20*       QM_ASSIGN                                        ~14     <true>
         21*       JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~14     null
         23        FREE                                                     ~14
    6    24      > JMP                                                      ->15
         25    >   FE_FREE                                                  $10
    9    26        ECHO                                                     'AYEAHFDSFDSAH'
   10    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.01 ms | 1396 KiB | 19 Q