3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonString = '[{"salesid":130201411173700750}]'; $payments = json_decode(stripslashes(html_entity_decode(rtrim($jsonString, '\0'))), true); $values = ''; foreach ($payments as $key => $value) { $value = (object)$value; if ($values != '') { $values .= ','; } printResponse(false, "sales id: $value->salesid"); exit; //more code omitted... }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 34
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 34
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/vrqSh
function name:  (null)
number of ops:  36
compiled vars:  !0 = $jsonString, !1 = $payments, !2 = $values, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%5B%7B%22salesid%22%3A130201411173700750%7D%5D'
    5     1        INIT_FCALL                                               'json_decode'
          2        INIT_FCALL                                               'stripslashes'
          3        INIT_FCALL                                               'html_entity_decode'
          4        INIT_FCALL                                               'rtrim'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '%5C0'
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !1, $9
    6    16        ASSIGN                                                   !2, ''
    7    17      > FE_RESET_R                                       $12     !1, ->34
         18    > > FE_FETCH_R                                       ~13     $12, !3, ->34
         19    >   ASSIGN                                                   !4, ~13
    8    20        CAST                                          8  ~15     !3
         21        ASSIGN                                                   !3, ~15
    9    22        IS_NOT_EQUAL                                             !2, ''
         23      > JMPZ                                                     ~17, ->25
   10    24    >   ASSIGN_OP                                     8          !2, '%2C'
   12    25    >   INIT_FCALL_BY_NAME                                       'printResponse'
         26        SEND_VAL_EX                                              <false>
         27        NOP                                                      
         28        FETCH_OBJ_R                                      ~19     !3, 'salesid'
         29        FAST_CONCAT                                      ~20     'sales+id%3A+', ~19
         30        SEND_VAL_EX                                              ~20
         31        DO_FCALL                                      0          
   13    32      > EXIT                                                     
    7    33*       JMP                                                      ->18
         34    >   FE_FREE                                                  $12
   15    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.21 ms | 1002 KiB | 17 Q