3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.2 ms | 1394 KiB | 15 Q