3v4l.org

run code in 300+ PHP versions simultaneously
<?php function cmp($a, $b) { $v = floatval($a) - floatval($b); return ($v == 0) ? 0 : (($v < 0) ? -1 : 1); } $kasa1[0]="5:franek"; $kasa1[1]="54:franek1"; $kasa1[2]="25:franek2"; $kasa1[3]="42:franek3"; $kasa1[4]="65:franek4"; $asd=count($kasa1); print_r($kasa1); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c8chs
function name:  (null)
number of ops:  16
compiled vars:  !0 = $kasa1, !1 = $asd
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  '5%3Afranek'
    7     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  '54%3Afranek1'
    8     4        ASSIGN_DIM                                               !0, 2
          5        OP_DATA                                                  '25%3Afranek2'
    9     6        ASSIGN_DIM                                               !0, 3
          7        OP_DATA                                                  '42%3Afranek3'
   10     8        ASSIGN_DIM                                               !0, 4
          9        OP_DATA                                                  '65%3Afranek4'
   11    10        COUNT                                            ~7      !0
         11        ASSIGN                                                   !1, ~7
   12    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   13    15      > RETURN                                                   1

Function cmp:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c8chs
function name:  cmp
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        CAST                                          5  ~3      !0
          3        CAST                                          5  ~4      !1
          4        SUB                                              ~5      ~3, ~4
          5        ASSIGN                                                   !2, ~5
    4     6        IS_EQUAL                                                 !2, 0
          7      > JMPZ                                                     ~7, ->10
          8    >   QM_ASSIGN                                        ~8      0
          9      > JMP                                                      ->16
         10    >   IS_SMALLER                                               !2, 0
         11      > JMPZ                                                     ~9, ->14
         12    >   QM_ASSIGN                                        ~10     -1
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~10     1
         15    >   QM_ASSIGN                                        ~8      ~10
         16    > > RETURN                                                   ~8
    5    17*     > RETURN                                                   null

End of function cmp

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.14 ms | 1400 KiB | 15 Q