3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function foobar(float $abc): int { return ceil($abc + 1); } foobar(123.0); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MHZm1
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'foobar'
          1        SEND_VAL                                                 123
          2        DO_FCALL                                      0          
   10     3      > RETURN                                                   1

Function foobar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MHZm1
function name:  foobar
number of ops:  9
compiled vars:  !0 = $abc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        INIT_FCALL                                               'ceil'
          2        ADD                                              ~1      !0, 1
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                         $2      
          5        VERIFY_RETURN_TYPE                                       $2
          6      > RETURN                                                   $2
    7     7*       VERIFY_RETURN_TYPE                                       
          8*     > RETURN                                                   null

End of function foobar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.14 ms | 1397 KiB | 16 Q