3v4l.org

run code in 300+ PHP versions simultaneously
<?php $campaignId=1; $dni=2222; $ani=33333; $vars = array("has_creditcard" => 1, "enabled" => 1, "campaign_id" => $campaignId, "document_number" => $dni); if(isset($ani) && !empty($ani)){ $vars["ani"] = $ani; } error_log(print_r($vars,true));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 13
filename:       /in/CGbpu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $campaignId, !1 = $dni, !2 = $ani, !3 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 2222
    4     2        ASSIGN                                                   !2, 33333
    5     3        INIT_ARRAY                                       ~7      1, 'has_creditcard'
    6     4        ADD_ARRAY_ELEMENT                                ~7      1, 'enabled'
    7     5        ADD_ARRAY_ELEMENT                                ~7      !0, 'campaign_id'
    8     6        ADD_ARRAY_ELEMENT                                ~7      !1, 'document_number'
    5     7        ASSIGN                                                   !3, ~7
   10     8        ISSET_ISEMPTY_CV                                 ~9      !2
          9      > JMPZ_EX                                          ~9      ~9, ->13
         10    >   ISSET_ISEMPTY_CV                                 ~10     !2
         11        BOOL_NOT                                         ~11     ~10
         12        BOOL                                             ~9      ~11
         13    > > JMPZ                                                     ~9, ->16
   11    14    >   ASSIGN_DIM                                               !3, 'ani'
         15        OP_DATA                                                  !2
   14    16    >   INIT_FCALL                                               'error_log'
         17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !3
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $13     
         21        SEND_VAR                                                 $13
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.69 ms | 1395 KiB | 17 Q