3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dbh = new PDO("sqlite::memory:"); $calories = (int) 150; $colour = 'red'; $sth = $dbh->prepare('SELECT 1 WHERE 1 = :calories AND 2 = :colour'); if ($sth->bindParam(':calories', $calories, PDO::PARAM_INT) !== true) die('die on ' . __LINE__. "\n"); if ($sth->bindValue(':colour', $colour, PDO::PARAM_STR) !== true) die('die on ' . __LINE__. "\n"); $sth->debugDumpParams();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 21
Branch analysis from position: 18
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 31
Branch analysis from position: 28
1 jumps found. (Code = 61) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lfMaV
function name:  (null)
number of ops:  34
compiled vars:  !0 = $dbh, !1 = $calories, !2 = $colour, !3 = $sth
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   NEW                                                  $4      'PDO'
          1        SEND_VAL_EX                                                  'sqlite%3A%3Amemory%3A'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $4
    3     4        CAST                                              4  ~7      150
          5        ASSIGN                                                       !1, ~7
    4     6        ASSIGN                                                       !2, 'red'
    5     7        INIT_METHOD_CALL                                             !0, 'prepare'
          8        SEND_VAL_EX                                                  'SELECT+1+WHERE+1+%3D+%3Acalories+AND+2+%3D+%3Acolour'
          9        DO_FCALL                                          0  $10     
         10        ASSIGN                                                       !3, $10
    6    11        INIT_METHOD_CALL                                             !3, 'bindParam'
         12        SEND_VAL_EX                                                  '%3Acalories'
         13        SEND_VAR_EX                                                  !1
         14        SEND_VAL_EX                                                  1
         15        DO_FCALL                                          0  $12     
         16        TYPE_CHECK                                      1014          $12
         17      > JMPZ                                                         ~13, ->21
    7    18    > > INIT_FCALL                                                   'exit'
         19*       SEND_VAL                                                     'die+on+7%0A'
         20*       DO_ICALL                                                     
    8    21    >   INIT_METHOD_CALL                                             !3, 'bindValue'
         22        SEND_VAL_EX                                                  '%3Acolour'
         23        SEND_VAR_EX                                                  !2
         24        SEND_VAL_EX                                                  2
         25        DO_FCALL                                          0  $15     
         26        TYPE_CHECK                                      1014          $15
         27      > JMPZ                                                         ~16, ->31
    9    28    > > INIT_FCALL                                                   'exit'
         29*       SEND_VAL                                                     'die+on+9%0A'
         30*       DO_ICALL                                                     
   11    31    >   INIT_METHOD_CALL                                             !3, 'debugDumpParams'
         32        DO_FCALL                                          0          
         33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.46 ms | 2771 KiB | 14 Q