3v4l.org

run code in 300+ PHP versions simultaneously
<?php $template = "select emp.* from employee emp" . " join departments dep on emp.id_department = dep.id" . " ${where}" . " ${order}" . " limit :limit offset :offset"; echo $template;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ghvoU
function name:  (null)
number of ops:  10
compiled vars:  !0 = $template, !1 = $where, !2 = $order
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NOP                                                      
          1        FAST_CONCAT                                      ~3      '+', !1
          2        CONCAT                                           ~4      'select+emp.%2A+from+employee+emp+join+departments+dep+on+emp.id_department+%3D+dep.id', ~3
    6     3        NOP                                                      
          4        FAST_CONCAT                                      ~5      '+', !2
          5        CONCAT                                           ~6      ~4, ~5
    7     6        CONCAT                                           ~7      ~6, '+limit+%3Alimit+offset+%3Aoffset'
    3     7        ASSIGN                                                   !0, ~7
    9     8        ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.05 ms | 1392 KiB | 13 Q