3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = array(1,2,3,4,5,6,7,8,9,0); $placeholders = rtrim(str_repeat('?, ', count($ids)), ', '); $sql = "DELETE FROM elastic_job_ad_queue WHERE locked_by = 0 AND job_ad_id IN ($placeholders)"; echo $sql;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/13btV
function name:  (null)
number of ops:  17
compiled vars:  !0 = $ids, !1 = $placeholders, !2 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'rtrim'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '%3F%2C+'
          4        COUNT                                            ~4      !0
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        SEND_VAL                                                 '%2C+'
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    4    11        ROPE_INIT                                     3  ~9      'DELETE+FROM+elastic_job_ad_queue+WHERE+locked_by+%3D+0+AND+job_ad_id+IN+%28'
         12        ROPE_ADD                                      1  ~9      ~9, !1
         13        ROPE_END                                      2  ~8      ~9, '%29'
         14        ASSIGN                                                   !2, ~8
    5    15        ECHO                                                     !2
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.28 ms | 1394 KiB | 17 Q