3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = json_decode('{"toggle_multi_tiles":["1","2","3"]}'); $display = (array)$data->toggle_multi_tiles == ["1", "2", "3"] ? 'inline-block' : 'block'; ?> <style> .hello-world { display:<?php echo $display ?>; } </style>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hJtZs
function name:  (null)
number of ops:  16
compiled vars:  !0 = $data, !1 = $display
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'json_decode'
          1        SEND_VAL                                                 '%7B%22toggle_multi_tiles%22%3A%5B%221%22%2C%222%22%2C%223%22%5D%7D'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    4     4        FETCH_OBJ_R                                      ~4      !0, 'toggle_multi_tiles'
          5        CAST                                          7  ~5      ~4
          6        IS_EQUAL                                                 ~5, <array>
          7      > JMPZ                                                     ~6, ->10
    5     8    >   QM_ASSIGN                                        ~7      'inline-block'
          9      > JMP                                                      ->11
    6    10    >   QM_ASSIGN                                        ~7      'block'
    4    11    >   ASSIGN                                                   !1, ~7
    8    12        ECHO                                                     '%0A+++%3Cstyle%3E%0A+++++++.hello-world+%7B%0A+++++++++++display%3A'
   11    13        ECHO                                                     !1
         14        ECHO                                                     '%3B%0A+++++++%7D%0A+++%3C%2Fstyle%3E'
   13    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
252.2 ms | 1001 KiB | 14 Q