3v4l.org

run code in 500+ PHP versions simultaneously
<?php $string = '123'; $integer = 0 + $string; $integer = $string - 0; $integer = 1 * $string; $integer = $string / 1; $integer = $string ** 1; $integer = + $string; $integer = - - $string; echo '123' ** 0; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J6SM0
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $integer
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '123'
    4     1        ADD                                                  ~3      0, !0
          2        ASSIGN                                                       !1, ~3
    5     3        SUB                                                  ~5      !0, 0
          4        ASSIGN                                                       !1, ~5
    6     5        MUL                                                  ~7      !0, 1
          6        ASSIGN                                                       !1, ~7
    7     7        DIV                                                  ~9      !0, 1
          8        ASSIGN                                                       !1, ~9
    8     9        POW                                                  ~11     !0, 1
         10        ASSIGN                                                       !1, ~11
    9    11        MUL                                                  ~13     !0, 1
         12        ASSIGN                                                       !1, ~13
   10    13        MUL                                                  ~15     !0, -1
         14        MUL                                                  ~16     ~15, -1
         15        ASSIGN                                                       !1, ~16
   12    16        ECHO                                                         1
   15    17      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.19 ms | 1327 KiB | 13 Q