3v4l.org

run code in 300+ PHP versions simultaneously
<?php (float) '1'; (float) '1.0'; (float) ''; (float) 'x'; // should always warn (int) '1'; (int) '1.0'; (int) ''; (int) 'x'; // should always warn
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gDLOv
function name:  (null)
number of ops:  17
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          5  ~0      '1'
          1        FREE                                                     ~0
    4     2        CAST                                          5  ~1      '1.0'
          3        FREE                                                     ~1
    5     4        CAST                                          5  ~2      ''
          5        FREE                                                     ~2
    6     6        CAST                                          5  ~3      'x'
          7        FREE                                                     ~3
    8     8        CAST                                          4  ~4      '1'
          9        FREE                                                     ~4
    9    10        CAST                                          4  ~5      '1.0'
         11        FREE                                                     ~5
   10    12        CAST                                          4  ~6      ''
         13        FREE                                                     ~6
   11    14        CAST                                          4  ~7      'x'
         15        FREE                                                     ~7
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.45 ms | 1006 KiB | 13 Q