3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.67 ms | 1392 KiB | 13 Q