3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSetPixels($cookie, $ssid, $fetchPixels, $sson_ssid, $loggedIn) { $isCookieMissing = $loggedIn && $cookie===null && $ssid; $isExplicitRequest = !is_null($fetchPixels); $sapSessionDiffers = !$sson_ssid || $sson_ssid !== $ssid; $setPixels = ( $isExplicitRequest || $isCookieMissing ) && $sapSessionDiffers; return $setPixels; } function simpler($c,$s,$f) { return doSetPixels($c,$s,null,$f,false); } #var_dump(simpler(12,13,15)); #var_dump(simpler(12,12,12)); #var_dump(simpler(12,12,15)); #var_dump(simpler(12,13,12)); #var_dump(simpler(12,15,15)); #var_dump(simpler(null,null,null)); #var_dump(simpler(12,null,null)); #var_dump(simpler(null,13,null)); var_dump(simpler(null,13,15)); var_dump(simpler(12,13,null)); var_dump(simpler(null,13,15)); var_dump(simpler(12,null,13));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Xk02
function name:  (null)
number of ops:  33
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'simpler'
          2        SEND_VAL                                                 null
          3        SEND_VAL                                                 13
          4        SEND_VAL                                                 15
          5        DO_FCALL                                      0  $0      
          6        SEND_VAR                                                 $0
          7        DO_ICALL                                                 
   26     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'simpler'
         10        SEND_VAL                                                 12
         11        SEND_VAL                                                 13
         12        SEND_VAL                                                 null
         13        DO_FCALL                                      0  $2      
         14        SEND_VAR                                                 $2
         15        DO_ICALL                                                 
   27    16        INIT_FCALL                                               'var_dump'
         17        INIT_FCALL                                               'simpler'
         18        SEND_VAL                                                 null
         19        SEND_VAL                                                 13
         20        SEND_VAL                                                 15
         21        DO_FCALL                                      0  $4      
         22        SEND_VAR                                                 $4
         23        DO_ICALL                                                 
   28    24        INIT_FCALL                                               'var_dump'
         25        INIT_FCALL                                               'simpler'
         26        SEND_VAL                                                 12
         27        SEND_VAL                                                 null
         28        SEND_VAL                                                 13
         29        DO_FCALL                                      0  $6      
         30        SEND_VAR                                                 $6
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Function dosetpixels:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 16, Position 2 = 18
Branch analysis from position: 16
2 jumps found. (Code = 47) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 21
Branch analysis from position: 18
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/6Xk02
function name:  doSetPixels
number of ops:  26
compiled vars:  !0 = $cookie, !1 = $ssid, !2 = $fetchPixels, !3 = $sson_ssid, !4 = $loggedIn, !5 = $isCookieMissing, !6 = $isExplicitRequest, !7 = $sapSessionDiffers, !8 = $setPixels
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
    4     5      > JMPZ_EX                                          ~9      !4, ->8
          6    >   TYPE_CHECK                                    2  ~10     !0
          7        BOOL                                             ~9      ~10
          8    > > JMPZ_EX                                          ~9      ~9, ->10
          9    >   BOOL                                             ~9      !1
         10    >   ASSIGN                                                   !5, ~9
    5    11        TYPE_CHECK                                    2  ~12     !2
         12        BOOL_NOT                                         ~13     ~12
         13        ASSIGN                                                   !6, ~13
    6    14        BOOL_NOT                                         ~15     !3
         15      > JMPNZ_EX                                         ~15     ~15, ->18
         16    >   IS_NOT_IDENTICAL                                 ~16     !3, !1
         17        BOOL                                             ~15     ~16
         18    >   ASSIGN                                                   !7, ~15
    8    19      > JMPNZ_EX                                         ~18     !6, ->21
         20    >   BOOL                                             ~18     !5
         21    > > JMPZ_EX                                          ~18     ~18, ->23
         22    >   BOOL                                             ~18     !7
         23    >   ASSIGN                                                   !8, ~18
   10    24      > RETURN                                                   !8
   11    25*     > RETURN                                                   null

End of function dosetpixels

Function simpler:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6Xk02
function name:  simpler
number of ops:  12
compiled vars:  !0 = $c, !1 = $s, !2 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   15     3        INIT_FCALL                                               'dosetpixels'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 null
          7        SEND_VAR                                                 !2
          8        SEND_VAL                                                 <false>
          9        DO_FCALL                                      0  $3      
         10      > RETURN                                                   $3
   16    11*     > RETURN                                                   null

End of function simpler

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.27 ms | 1403 KiB | 20 Q