3v4l.org

run code in 300+ PHP versions simultaneously
<?php function apple($apples =4) { $apples = $apples / 2; return $apples; } $apples = 10; apples($apples); echo $apples;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uUU6h
function name:  (null)
number of ops:  6
compiled vars:  !0 = $apples
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 10
    8     1        INIT_FCALL_BY_NAME                                       'apples'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    9     4        ECHO                                                     !0
          5      > RETURN                                                   1

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

End of function apple

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.36 ms | 1393 KiB | 13 Q