3v4l.org

run code in 300+ PHP versions simultaneously
<?php $type = gettype(1.456); $var = settype(1.456, $type); echo gettype($var);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7q5vD
function name:  (null)
number of ops:  10
compiled vars:  !0 = $type, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   GET_TYPE                                         ~2      1.456
          1        ASSIGN                                                   !0, ~2
    3     2        INIT_FCALL                                               'settype'
          3        SEND_VAL_EX                                              1.456
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    4     7        GET_TYPE                                         ~6      !1
          8        ECHO                                                     ~6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.48 ms | 1394 KiB | 15 Q