3v4l.org

run code in 300+ PHP versions simultaneously
<?php $required = !empty($field["required"]) ? "form-required" : ""; $buffer = sprintf(" <tr class='form-field %s'> <th scope='row'>%s</th> <td> %s <p>%s</p> </td> </tr> ", $required, "meta", "<input type='text' name='hello'", ""); var_dump($buffer);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 5
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8N7jU
function name:  (null)
number of ops:  19
compiled vars:  !0 = $required, !1 = $field, !2 = $buffer
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ISSET_ISEMPTY_DIM_OBJ                         1  ~3      !1, 'required'
          1        BOOL_NOT                                         ~4      ~3
          2      > JMPZ                                                     ~4, ->5
          3    >   QM_ASSIGN                                        ~5      'form-required'
          4      > JMP                                                      ->6
          5    >   QM_ASSIGN                                        ~5      ''
          6    >   ASSIGN                                                   !0, ~5
    5     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 '%0A%3Ctr+class%3D%27form-field+%25s%27%3E%0A%3Cth+scope%3D%27row%27%3E%25s%3C%2Fth%3E%0A%3Ctd%3E%0A%25s%0A%3Cp%3E%25s%3C%2Fp%3E%0A%3C%2Ftd%3E%0A%3C%2Ftr%3E%0A'
   13     9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 'meta'
         11        SEND_VAL                                                 '%3Cinput+type%3D%27text%27+name%3D%27hello%27'
         12        SEND_VAL                                                 ''
         13        DO_ICALL                                         $7      
    5    14        ASSIGN                                                   !2, $7
   14    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.77 ms | 1395 KiB | 17 Q