3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test_odd($var) { return($var & 1); } $a1=[0 => ['id' => 'a', 'name' => 'coooool', 'ppu' => 3]]; $a2=[0 => ['id' => 'a', 'name' => 'coooool', 'ppu' => 3]]; print_r(array_filter($a1,"test_odd")); ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iv9n3
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a1, !1 = $a2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'print_r'
          3        INIT_FCALL                                               'array_filter'
          4        SEND_VAR                                                 !0
          5        SEND_VAL                                                 'test_odd'
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                                 
   12     9        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   14    10      > RETURN                                                   1

Function test_odd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iv9n3
function name:  test_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 test_odd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
206.69 ms | 1395 KiB | 17 Q