3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; $b = 4; function crazy(int $a, int & $b) { return ((($a == !$b) ?? $c ) === ($a % $b)) ? $a : ($b == $a); } echo crazy($a, $b);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/RZXqs
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 5
    4     1        ASSIGN                                                   !1, 4
   11     2        INIT_FCALL                                               'crazy'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

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

End of function crazy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.51 ms | 1398 KiB | 14 Q