3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 5; $b = 4; function crazy(int $a, int & $b) { return (($a == !$b) === ($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/qhOqg
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 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qhOqg
function name:  crazy
number of ops:  13
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        BOOL_NOT                                         ~2      !1
          3        IS_EQUAL                                         ~3      !0, ~2
          4        MOD                                              ~4      !0, !1
          5        IS_IDENTICAL                                             ~3, ~4
          6      > JMPZ                                                     ~5, ->9
          7    >   QM_ASSIGN                                        ~6      !0
          8      > JMP                                                      ->11
          9    >   IS_EQUAL                                         ~7      !1, !0
         10        QM_ASSIGN                                        ~6      ~7
         11    > > RETURN                                                   ~6
    9    12*     > RETURN                                                   null

End of function crazy

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
198.44 ms | 1398 KiB | 14 Q