3v4l.org

run code in 300+ PHP versions simultaneously
<?php function odd($var) { // returns whether the input integer is odd return($var & 1); } function calculate($res, $period, $elements, $per, $total, $brand = false) { $array1 = array("a"=>1, "b"=>2, "c"=>3, "d"=>4, "e"=>5); $array2 = array(6, 7, 8, 9, 10, 11, 12); echo "Odd :\n"; print_r(array_filter($array1, "odd")); } calculate(1,1,1,1,1,1); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZvJP
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'calculate'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 1
          3        SEND_VAL                                                 1
          4        SEND_VAL                                                 1
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 1
          7        DO_FCALL                                      0          
   19     8      > RETURN                                                   1

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

End of function odd

Function calculate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZZvJP
function name:  calculate
number of ops:  17
compiled vars:  !0 = $res, !1 = $period, !2 = $elements, !3 = $per, !4 = $total, !5 = $brand, !6 = $array1, !7 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV_INIT                                        !5      <false>
    9     6        ASSIGN                                                   !6, <array>
   10     7        ASSIGN                                                   !7, <array>
   12     8        ECHO                                                     'Odd+%3A%0A'
   13     9        INIT_FCALL                                               'print_r'
         10        INIT_FCALL                                               'array_filter'
         11        SEND_VAR                                                 !6
         12        SEND_VAL                                                 'odd'
         13        DO_ICALL                                         $10     
         14        SEND_VAR                                                 $10
         15        DO_ICALL                                                 
   14    16      > RETURN                                                   null

End of function calculate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.65 ms | 1398 KiB | 18 Q