3v4l.org

run code in 300+ PHP versions simultaneously
<?php $active = 1; var_dump($active); $ps->bindParam(":active", $active, PDO::PARAM_INT); var_dump($active); $ps->execute(); var_dump($active); if ($active === 1) { // do something here // note: this will fail since $active is now "1" }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/BNhcJ
function name:  (null)
number of ops:  20
compiled vars:  !0 = $active, !1 = $ps
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_METHOD_CALL                                         !1, 'bindParam'
          5        SEND_VAL_EX                                              '%3Aactive'
          6        SEND_VAR_EX                                              !0
          7        SEND_VAL_EX                                              1
          8        DO_FCALL                                      0          
    5     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    6    12        INIT_METHOD_CALL                                         !1, 'execute'
         13        DO_FCALL                                      0          
    7    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                                 
    8    17        IS_IDENTICAL                                             !0, 1
         18      > JMPZ                                                     ~8, ->19
   11    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.45 ms | 1395 KiB | 15 Q