3v4l.org

run code in 500+ PHP versions simultaneously
<?php $foo = '0b11'; var_dump( $foo, (float) $foo, (int) $foo, +$foo );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kspcM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '0b11'
    5     1        INIT_FCALL                                                   'var_dump'
    6     2        SEND_VAR                                                     !0
    7     3        CAST                                              5  ~2      !0
          4        SEND_VAL                                                     ~2
    8     5        CAST                                              4  ~3      !0
          6        SEND_VAL                                                     ~3
    9     7        MUL                                                  ~4      !0, 1
          8        SEND_VAL                                                     ~4
    5     9        DO_ICALL                                                     
   10    10      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
215.4 ms | 2271 KiB | 14 Q