3v4l.org

run code in 300+ PHP versions simultaneously
<?php function remove_periods($string){ return $string * 100; } echo remove_periods((float)100.00); echo "\n---\n"; echo remove_periods((string)100.00); echo "\n---\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZFjPb
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'remove_periods'
          1        CAST                                          5  ~0      100
          2        SEND_VAL                                                 ~0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
    7     5        ECHO                                                     '%0A---%0A'
    8     6        INIT_FCALL                                               'remove_periods'
          7        CAST                                          6  ~2      100
          8        SEND_VAL                                                 ~2
          9        DO_FCALL                                      0  $3      
         10        ECHO                                                     $3
    9    11        ECHO                                                     '%0A---%0A'
         12      > RETURN                                                   1

Function remove_periods:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZFjPb
function name:  remove_periods
number of ops:  4
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        MUL                                              ~1      !0, 100
          2      > RETURN                                                   ~1
    4     3*     > RETURN                                                   null

End of function remove_periods

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
287.08 ms | 1011 KiB | 15 Q