3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; function lel($a, $b) { return (is_array($a) && $a[0] == 5 && !empty($b) ); } var_dump(lel($a, 'topkek'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6v6DF
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
   13     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'lel'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 'topkek'
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Function lel:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 7
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 7
filename:       /in/6v6DF
function name:  lel
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        TYPE_CHECK                                  128  ~2      !0
          3      > JMPZ_EX                                          ~2      ~2, ->7
    7     4    >   FETCH_DIM_R                                      ~3      !0, 0
          5        IS_EQUAL                                         ~4      ~3, 5
          6        BOOL                                             ~2      ~4
          7    > > JMPZ_EX                                          ~2      ~2, ->11
    8     8    >   ISSET_ISEMPTY_CV                                 ~5      !1
          9        BOOL_NOT                                         ~6      ~5
         10        BOOL                                             ~2      ~6
         11    > > RETURN                                                   ~2
   11    12*     > RETURN                                                   null

End of function lel

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.82 ms | 1402 KiB | 16 Q