3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFloat(float $value) { echo "(" . gettype($float) . ") " . $float; } someFloat("1"); someFloat(1.1);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boGHa
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'somefloat'
          1        SEND_VAL                                                 '1'
          2        DO_FCALL                                      0          
    8     3        INIT_FCALL                                               'somefloat'
          4        SEND_VAL                                                 1.1
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function somefloat:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/boGHa
function name:  someFloat
number of ops:  7
compiled vars:  !0 = $value, !1 = $float
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        GET_TYPE                                         ~2      !1
          2        CONCAT                                           ~3      '%28', ~2
          3        CONCAT                                           ~4      ~3, '%29+'
          4        CONCAT                                           ~5      ~4, !1
          5        ECHO                                                     ~5
    5     6      > RETURN                                                   null

End of function somefloat

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.97 ms | 1397 KiB | 15 Q