3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace PHPStan { function dumpType ($input) { var_dump($input);} } namespace { function checkMe(int $data) { $data = bcmul((string) $data, '100', 2); \PHPStan\dumpType($data); \PHPStan\dumpType(round($data)); } var_dump(round(false)); checkMe(3); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5io0n
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'round'
          2        SEND_VAL                                                 <false>
          3        DO_ICALL                                         $0      
          4        SEND_VAR                                                 $0
          5        DO_ICALL                                                 
   19     6        INIT_FCALL                                               'checkme'
          7        SEND_VAL                                                 3
          8        DO_FCALL                                      0          
   21     9      > RETURN                                                   1

Function phpstan%5Cdumptype:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5io0n
function name:  PHPStan\dumpType
number of ops:  5
compiled vars:  !0 = $input
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        INIT_NS_FCALL_BY_NAME                                    'PHPStan%5Cvar_dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function phpstan%5Cdumptype

Function checkme:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5io0n
function name:  checkMe
number of ops:  18
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
   10     1        INIT_FCALL_BY_NAME                                       'bcmul'
          2        CAST                                          6  ~1      !0
          3        SEND_VAL_EX                                              ~1
          4        SEND_VAL_EX                                              '100'
          5        SEND_VAL_EX                                              2
          6        DO_FCALL                                      0  $2      
          7        ASSIGN                                                   !0, $2
   11     8        INIT_FCALL                                               'phpstan%5Cdumptype'
          9        SEND_VAR                                                 !0
         10        DO_FCALL                                      0          
   13    11        INIT_FCALL                                               'phpstan%5Cdumptype'
         12        INIT_FCALL                                               'round'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        DO_FCALL                                      0          
   15    17      > RETURN                                                   null

End of function checkme

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.5 ms | 1014 KiB | 18 Q