3v4l.org

run code in 500+ PHP versions simultaneously
<?php function so_set_y($x){ return floor($x/1000)/10; } echo so_set_y(2140);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7DmEY
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                                   'so_set_y'
          1        SEND_VAL                                                     2140
          2        DO_FCALL                                          0  $0      
          3        ECHO                                                         $0
          4      > RETURN                                                       1

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

End of function so_set_y

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
203.97 ms | 1880 KiB | 15 Q