3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foobar(float $a){ var_dump($a); } foobar('1'); foobar('01'); foobar('1.0'); foobar(1.000); foobar(1); foobar(01);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sT6ld
function name:  (null)
number of ops:  19
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'foobar'
          1        SEND_VAL                                                 '1'
          2        DO_FCALL                                      0          
   10     3        INIT_FCALL                                               'foobar'
          4        SEND_VAL                                                 '01'
          5        DO_FCALL                                      0          
   11     6        INIT_FCALL                                               'foobar'
          7        SEND_VAL                                                 '1.0'
          8        DO_FCALL                                      0          
   12     9        INIT_FCALL                                               'foobar'
         10        SEND_VAL                                                 1
         11        DO_FCALL                                      0          
   13    12        INIT_FCALL                                               'foobar'
         13        SEND_VAL                                                 1
         14        DO_FCALL                                      0          
   14    15        INIT_FCALL                                               'foobar'
         16        SEND_VAL                                                 1
         17        DO_FCALL                                      0          
         18      > RETURN                                                   1

Function foobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sT6ld
function name:  foobar
number of ops:  5
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    7     4      > RETURN                                                   null

End of function foobar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.98 ms | 1004 KiB | 20 Q