3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = sprintf("SELECT R.rateTypeId FROM rateType R LEFT JOIN rateSellPeriod S ON (S.rateTypeId=R.rateTypeId AND '%s'>=fromTime AND '%s'<toTime) WHERE R.rateTypeId IN (%s) AND (R.enableSellPeriods=0 OR S.rateTypeId IS NOT NULL)", 'a', 'b', 'c'); echo $test;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XhhlY
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'sprintf'
          1        SEND_VAL                                                 'SELECT+R.rateTypeId%0A++++++++++++++++++++++FROM+rateType+R%0A+++++++++++++++++LEFT+JOIN+rateSellPeriod+S+ON+%28S.rateTypeId%3DR.rateTypeId+AND+%27%25s%27%3E%3DfromTime+AND+%27%25s%27%3CtoTime%29%0A+++++++++++++++++++++WHERE+R.rateTypeId+IN+%28%25s%29+AND+%28R.enableSellPeriods%3D0+OR+S.rateTypeId+IS+NOT+NULL%29'
    7     2        SEND_VAL                                                 'a'
    8     3        SEND_VAL                                                 'b'
    9     4        SEND_VAL                                                 'c'
          5        DO_ICALL                                         $1      
    3     6        ASSIGN                                                   !0, $1
   11     7        ECHO                                                     !0
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1394 KiB | 15 Q