3v4l.org

run code in 300+ PHP versions simultaneously
<?php //select * from tbl_product where id IN(select product_id from tbl_vehicleproductequipments where (equipmentvalue_id = 1 OR equipmentvalue_id = 2 OR equipmentvalue_id = 3 OR equipmentvalue_id = 4) AND (equipmentvalue_id = 5 OR equipmentvalue_id = 6 OR equipmentvalue_id = 7) $arr = array( array(1, 2, 3, 4), array(5, 6, 7) ); echo $sql = 'select product_id from tbl_vehicleproductequipments where (equipmentvalue_id = '.implode(" OR equipmentvalue_id = ", $arr[0]).') AND (equipmentvalue_id = '.implode(" OR equipmentvalue_id = ", $arr[1]).")";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4lp9c
function name:  (null)
number of ops:  18
compiled vars:  !0 = $arr, !1 = $sql
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '+OR+equipmentvalue_id+%3D+'
          3        FETCH_DIM_R                                      ~3      !0, 0
          4        SEND_VAL                                                 ~3
          5        DO_ICALL                                         $4      
          6        CONCAT                                           ~5      'select+product_id+from+tbl_vehicleproductequipments+where+%28equipmentvalue_id+%3D+', $4
          7        CONCAT                                           ~6      ~5, '%29+AND+%28equipmentvalue_id+%3D+'
          8        INIT_FCALL                                               'implode'
          9        SEND_VAL                                                 '+OR+equipmentvalue_id+%3D+'
         10        FETCH_DIM_R                                      ~7      !0, 1
         11        SEND_VAL                                                 ~7
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      ~6, $8
         14        CONCAT                                           ~10     ~9, '%29'
         15        ASSIGN                                           ~11     !1, ~10
         16        ECHO                                                     ~11
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.61 ms | 1450 KiB | 14 Q