3v4l.org

run code in 500+ PHP versions simultaneously
<?php $large_array = range(0, 250001); $db = new PDO('sqlite::memory:'); $placeholders = implode(', ', array_fill(0, count($large_array), '?')); $stmt = $db->prepare("SELECT 1 WHERE 42 IN ($placeholders)"); var_dump($stmt->execute($large_array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oke3S
function name:  (null)
number of ops:  31
compiled vars:  !0 = $large_array, !1 = $db, !2 = $placeholders, !3 = $stmt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'range'
          1        SEND_VAL                                                     0
          2        SEND_VAL                                                     250001
          3        DO_ICALL                                             $4      
          4        ASSIGN                                                       !0, $4
    5     5        NEW                                                  $6      'PDO'
          6        SEND_VAL_EX                                                  'sqlite%3A%3Amemory%3A'
          7        DO_FCALL                                          0          
          8        ASSIGN                                                       !1, $6
    6     9        INIT_FCALL                                                   'array_fill'
         10        SEND_VAL                                                     0
         11        COUNT                                                ~9      !0
         12        SEND_VAL                                                     ~9
         13        SEND_VAL                                                     '%3F'
         14        DO_ICALL                                             $10     
         15        FRAMELESS_ICALL_2                implode             ~11     '%2C+', $10
         16        ASSIGN                                                       !2, ~11
    7    17        INIT_METHOD_CALL                                             !1, 'prepare'
         18        ROPE_INIT                                         3  ~14     'SELECT+1+WHERE+42+IN+%28'
         19        ROPE_ADD                                          1  ~14     ~14, !2
         20        ROPE_END                                          2  ~13     ~14, '%29'
         21        SEND_VAL_EX                                                  ~13
         22        DO_FCALL                                          0  $16     
         23        ASSIGN                                                       !3, $16
    8    24        INIT_FCALL                                                   'var_dump'
         25        INIT_METHOD_CALL                                             !3, 'execute'
         26        SEND_VAR_EX                                                  !0
         27        DO_FCALL                                          0  $18     
         28        SEND_VAR                                                     $18
         29        DO_ICALL                                                     
         30      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
156.45 ms | 2047 KiB | 16 Q