3v4l.org

run code in 300+ PHP versions simultaneously
<?php $idList = array( 1, 2, 3 ); function sql( $string ){ echo $string; } sql( 'SELECT * FROM employees WHERE FIND_IN_SET( employee_id,'.implode( ',', $idList ).')' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6BWop
function name:  (null)
number of ops:  11
compiled vars:  !0 = $idList
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        INIT_FCALL                                               'sql'
          2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      'SELECT+%2A+FROM+employees+WHERE+FIND_IN_SET%28+employee_id%2C', $2
          7        CONCAT                                           ~4      ~3, '%29'
          8        SEND_VAL                                                 ~4
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function sql:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6BWop
function name:  sql
number of ops:  3
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ECHO                                                     !0
    7     2      > RETURN                                                   null

End of function sql

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.33 ms | 1397 KiB | 16 Q