3v4l.org

run code in 300+ 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:  34
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                                               'implode'
         10        SEND_VAL                                                 '%2C+'
         11        INIT_FCALL                                               'array_fill'
         12        SEND_VAL                                                 0
         13        COUNT                                            ~9      !0
         14        SEND_VAL                                                 ~9
         15        SEND_VAL                                                 '%3F'
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !2, $11
    7    20        INIT_METHOD_CALL                                         !1, 'prepare'
         21        ROPE_INIT                                     3  ~14     'SELECT+1+WHERE+42+IN+%28'
         22        ROPE_ADD                                      1  ~14     ~14, !2
         23        ROPE_END                                      2  ~13     ~14, '%29'
         24        SEND_VAL_EX                                              ~13
         25        DO_FCALL                                      0  $16     
         26        ASSIGN                                                   !3, $16
    8    27        INIT_FCALL                                               'var_dump'
         28        INIT_METHOD_CALL                                         !3, 'execute'
         29        SEND_VAR_EX                                              !0
         30        DO_FCALL                                      0  $18     
         31        SEND_VAR                                                 $18
         32        DO_ICALL                                                 
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.21 ms | 1401 KiB | 21 Q