3v4l.org

run code in 300+ PHP versions simultaneously
<?php function solution($A) { $n = sizeof($A); return $n; } $A[0] = 4 ; $A[1] = 2 ; $A[2] = 2; $A[3] = 3 ; $A[4] = 1 ; $A[5] = 4; $A[6] = 7 ; $A[7] = 8 ; $A[8] = 6; $A[9] = 9; print_r(solution($A));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EV3FQ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  4
   11     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  2
   12     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  2
   13     6        ASSIGN_DIM                                               !0, 3
          7        OP_DATA                                                  3
   14     8        ASSIGN_DIM                                               !0, 4
          9        OP_DATA                                                  1
   15    10        ASSIGN_DIM                                               !0, 5
         11        OP_DATA                                                  4
   16    12        ASSIGN_DIM                                               !0, 6
         13        OP_DATA                                                  7
   17    14        ASSIGN_DIM                                               !0, 7
         15        OP_DATA                                                  8
   18    16        ASSIGN_DIM                                               !0, 8
         17        OP_DATA                                                  6
   19    18        ASSIGN_DIM                                               !0, 9
         19        OP_DATA                                                  9
   21    20        INIT_FCALL                                               'print_r'
         21        INIT_FCALL                                               'solution'
         22        SEND_VAR                                                 !0
         23        DO_FCALL                                      0  $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

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

End of function solution

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.92 ms | 1399 KiB | 16 Q