3v4l.org

run code in 300+ PHP versions simultaneously
<?php $heading = 'h2' + 'h3'; echo ++$heading; echo (Int) 'h1'; echo (Bool) 'h1';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5bpc
function name:  (null)
number of ops:  9
compiled vars:  !0 = $heading
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ADD                                              ~1      'h2', 'h3'
          1        ASSIGN                                                   !0, ~1
    5     2        PRE_INC                                          ~3      !0
          3        ECHO                                                     ~3
    6     4        CAST                                          4  ~4      'h1'
          5        ECHO                                                     ~4
    7     6        BOOL                                             ~5      'h1'
          7        ECHO                                                     ~5
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.7 ms | 1384 KiB | 13 Q