3v4l.org

run code in 500+ PHP versions simultaneously
<?php $x = 'test'; $z = 'w'; function char($char) {return $char;} echo "this is a ${trim(' '.++$z.char(' '))}";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0dLop
function name:  (null)
number of ops:  14
compiled vars:  !0 = $x, !1 = $z
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, 'test'
    3     1        ASSIGN                                                       !1, 'w'
    6     2        NOP                                                          
          3        PRE_INC                                              ~4      !1
          4        CONCAT                                               ~5      '+', ~4
          5        INIT_FCALL                                                   'char'
          6        SEND_VAL                                                     '+'
          7        DO_FCALL                                          0  $6      
          8        CONCAT                                               ~7      ~5, $6
          9        FRAMELESS_ICALL_1                trim                ~8      ~7
         10        FETCH_R                          local               ~9      ~8
         11        FAST_CONCAT                                          ~10     'this+is+a+', ~9
         12        ECHO                                                         ~10
         13      > RETURN                                                       1

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

End of function char

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
114.98 ms | 511 KiB | 10 Q